Fix some low-hanging type errors
This commit is contained in:
@@ -212,7 +212,9 @@ export function Component() {
|
|||||||
<Button
|
<Button
|
||||||
testID="cancelBtn"
|
testID="cancelBtn"
|
||||||
type="default"
|
type="default"
|
||||||
onPress={() => closeModal()}
|
onPress={() => {
|
||||||
|
closeModal()
|
||||||
|
}}
|
||||||
accessibilityLabel={_(msg`Cancel`)}
|
accessibilityLabel={_(msg`Cancel`)}
|
||||||
accessibilityHint=""
|
accessibilityHint=""
|
||||||
label={_(msg`Cancel`)}
|
label={_(msg`Cancel`)}
|
||||||
|
|||||||
@@ -79,7 +79,9 @@ export function Component({text, href}: {text: string; href: string}) {
|
|||||||
<Button
|
<Button
|
||||||
testID="cancelBtn"
|
testID="cancelBtn"
|
||||||
type="default"
|
type="default"
|
||||||
onPress={() => closeModal()}
|
onPress={() => {
|
||||||
|
closeModal()
|
||||||
|
}}
|
||||||
accessibilityLabel={_(msg`Cancel`)}
|
accessibilityLabel={_(msg`Cancel`)}
|
||||||
accessibilityHint=""
|
accessibilityHint=""
|
||||||
label="Cancel"
|
label="Cancel"
|
||||||
|
|||||||
@@ -136,7 +136,9 @@ export function Component({
|
|||||||
<Button
|
<Button
|
||||||
testID="doneBtn"
|
testID="doneBtn"
|
||||||
type="default"
|
type="default"
|
||||||
onPress={() => closeModal()}
|
onPress={() => {
|
||||||
|
closeModal()
|
||||||
|
}}
|
||||||
accessibilityLabel={_(msg`Done`)}
|
accessibilityLabel={_(msg`Done`)}
|
||||||
accessibilityHint=""
|
accessibilityHint=""
|
||||||
label="Done"
|
label="Done"
|
||||||
|
|||||||
@@ -99,7 +99,12 @@ export function Component({
|
|||||||
{description}
|
{description}
|
||||||
</Text>
|
</Text>
|
||||||
<View style={s.flex1} />
|
<View style={s.flex1} />
|
||||||
<Button type="primary" style={styles.btn} onPress={() => closeModal()}>
|
<Button
|
||||||
|
type="primary"
|
||||||
|
style={styles.btn}
|
||||||
|
onPress={() => {
|
||||||
|
closeModal()
|
||||||
|
}}>
|
||||||
<Text type="button-lg" style={[pal.textLight, s.textCenter, s.white]}>
|
<Text type="button-lg" style={[pal.textLight, s.textCenter, s.white]}>
|
||||||
Okay
|
Okay
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
@@ -224,7 +224,9 @@ export function Component({showReminder}: {showReminder?: boolean}) {
|
|||||||
<Button
|
<Button
|
||||||
testID="cancelBtn"
|
testID="cancelBtn"
|
||||||
type="default"
|
type="default"
|
||||||
onPress={() => closeModal()}
|
onPress={() => {
|
||||||
|
closeModal()
|
||||||
|
}}
|
||||||
accessibilityLabel={
|
accessibilityLabel={
|
||||||
stage === Stages.Reminder ? 'Not right now' : 'Cancel'
|
stage === Stages.Reminder ? 'Not right now' : 'Cancel'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import {OnScrollHandler} from 'lib/hooks/useOnMainScroll'
|
|||||||
|
|
||||||
const SCROLLED_DOWN_LIMIT = 200
|
const SCROLLED_DOWN_LIMIT = 200
|
||||||
|
|
||||||
interface PagerWithHeaderChildParams {
|
export interface PagerWithHeaderChildParams {
|
||||||
headerHeight: number
|
headerHeight: number
|
||||||
isFocused: boolean
|
isFocused: boolean
|
||||||
onScroll: OnScrollHandler
|
onScroll: OnScrollHandler
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ function ProfileScreenLoaded({
|
|||||||
}, [openComposer, currentAccount, track, profile])
|
}, [openComposer, currentAccount, track, profile])
|
||||||
|
|
||||||
const onPageSelected = React.useCallback(
|
const onPageSelected = React.useCallback(
|
||||||
i => {
|
(i: number) => {
|
||||||
setCurrentPage(i)
|
setCurrentPage(i)
|
||||||
},
|
},
|
||||||
[setCurrentPage],
|
[setCurrentPage],
|
||||||
|
|||||||
Reference in New Issue
Block a user