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