Fix some type errors (#1952)
* Fix some low-hanging type errors * Override scrollRef types on profile
This commit is contained in:
parent
6c8f043e37
commit
9c8a1b8a31
7 changed files with 40 additions and 15 deletions
|
@ -212,7 +212,9 @@ export function Component() {
|
|||
<Button
|
||||
testID="cancelBtn"
|
||||
type="default"
|
||||
onPress={() => closeModal()}
|
||||
onPress={() => {
|
||||
closeModal()
|
||||
}}
|
||||
accessibilityLabel={_(msg`Cancel`)}
|
||||
accessibilityHint=""
|
||||
label={_(msg`Cancel`)}
|
||||
|
|
|
@ -79,7 +79,9 @@ export function Component({text, href}: {text: string; href: string}) {
|
|||
<Button
|
||||
testID="cancelBtn"
|
||||
type="default"
|
||||
onPress={() => closeModal()}
|
||||
onPress={() => {
|
||||
closeModal()
|
||||
}}
|
||||
accessibilityLabel={_(msg`Cancel`)}
|
||||
accessibilityHint=""
|
||||
label="Cancel"
|
||||
|
|
|
@ -136,7 +136,9 @@ export function Component({
|
|||
<Button
|
||||
testID="doneBtn"
|
||||
type="default"
|
||||
onPress={() => closeModal()}
|
||||
onPress={() => {
|
||||
closeModal()
|
||||
}}
|
||||
accessibilityLabel={_(msg`Done`)}
|
||||
accessibilityHint=""
|
||||
label="Done"
|
||||
|
|
|
@ -99,7 +99,12 @@ export function Component({
|
|||
{description}
|
||||
</Text>
|
||||
<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]}>
|
||||
Okay
|
||||
</Text>
|
||||
|
|
|
@ -224,7 +224,9 @@ export function Component({showReminder}: {showReminder?: boolean}) {
|
|||
<Button
|
||||
testID="cancelBtn"
|
||||
type="default"
|
||||
onPress={() => closeModal()}
|
||||
onPress={() => {
|
||||
closeModal()
|
||||
}}
|
||||
accessibilityLabel={
|
||||
stage === Stages.Reminder ? 'Not right now' : 'Cancel'
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ import {OnScrollHandler} from 'lib/hooks/useOnMainScroll'
|
|||
|
||||
const SCROLLED_DOWN_LIMIT = 200
|
||||
|
||||
interface PagerWithHeaderChildParams {
|
||||
export interface PagerWithHeaderChildParams {
|
||||
headerHeight: number
|
||||
isFocused: boolean
|
||||
onScroll: OnScrollHandler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue