Add test case
This commit is contained in:
@@ -3,8 +3,10 @@ import {View} from 'react-native'
|
||||
import {Image} from 'expo-image'
|
||||
import {msg, Trans} from '@lingui/macro'
|
||||
import {useLingui} from '@lingui/react'
|
||||
import {useNavigation} from '@react-navigation/native'
|
||||
|
||||
import {urls} from '#/lib/constants'
|
||||
import {type NavigationProp} from '#/lib/routes/types'
|
||||
import {logger} from '#/logger'
|
||||
import {isNative} from '#/platform/detection'
|
||||
import {atoms as a, useBreakpoints, useTheme} from '#/alf'
|
||||
@@ -22,6 +24,7 @@ export function InitialVerificationAnnouncement() {
|
||||
const {gtMobile} = useBreakpoints()
|
||||
const nuxDialogs = useNuxDialogContext()
|
||||
const control = Dialog.useDialogControl()
|
||||
const nav = useNavigation<NavigationProp>()
|
||||
|
||||
Dialog.useAutoOpen(control)
|
||||
|
||||
@@ -181,7 +184,9 @@ export function InitialVerificationAnnouncement() {
|
||||
color="secondary"
|
||||
style={[a.justify_center, a.w_full]}
|
||||
onPress={() => {
|
||||
control.close()
|
||||
control.close(() => {
|
||||
nav.navigate('PrivacyAndSecuritySettings')
|
||||
})
|
||||
}}>
|
||||
<ButtonText>
|
||||
<Trans>Close</Trans>
|
||||
|
||||
@@ -111,7 +111,7 @@ function Inner({
|
||||
}
|
||||
|
||||
React.useEffect(() => {
|
||||
if (snoozed) return
|
||||
// if (snoozed) return
|
||||
if (!nuxs) return
|
||||
|
||||
for (const {id, enabled} of queuedNuxs) {
|
||||
@@ -119,7 +119,7 @@ function Inner({
|
||||
|
||||
// check if completed first
|
||||
if (nux && nux.completed) {
|
||||
continue
|
||||
// continue
|
||||
}
|
||||
|
||||
// then check gate (track exposure)
|
||||
|
||||
Reference in New Issue
Block a user