diff --git a/src/ageAssurance/components/NoAccessScreen.tsx b/src/ageAssurance/components/NoAccessScreen.tsx index 71a784a2f1..29d9abc5b2 100644 --- a/src/ageAssurance/components/NoAccessScreen.tsx +++ b/src/ageAssurance/components/NoAccessScreen.tsx @@ -1,9 +1,7 @@ import {useCallback, useEffect} from 'react' import {ScrollView, View} from 'react-native' import {useSafeAreaInsets} from 'react-native-safe-area-context' -import {msg} from '@lingui/core/macro' -import {useLingui} from '@lingui/react' -import {Trans} from '@lingui/react/macro' +import {Trans, useLingui} from '@lingui/react/macro' import {dateDiff, useGetTimeAgo} from '#/lib/hooks/useTimeAgo' import {useIsBirthdateUpdateAllowed} from '#/state/birthdate' @@ -46,7 +44,7 @@ const textStyles = [a.text_md, a.leading_snug] export function NoAccessScreen() { const t = useTheme() - const {_, i18n} = useLingui() + const {t: l, i18n} = useLingui() const ax = useAnalytics() const {gtPhone} = useBreakpoints() const insets = useSafeAreaInsets() @@ -117,7 +115,7 @@ export function NoAccessScreen() { If you believe your birthdate is incorrect, you can update it by{' '} { ax.metric('ageAssurance:noAccessScreen:openBirthdateDialog', {}) @@ -206,7 +204,7 @@ export function NoAccessScreen() { <> {' '} { locationControl.open() })} @@ -225,20 +223,15 @@ export function NoAccessScreen() { if (access !== aa.Access.Full) { props.disableDialogAction() props.setDialogError( - _( - msg`We're sorry, but based on your device's location, you are currently located in a region that requires age assurance.`, - ), + l`We're sorry, but based on your device's location, you are currently located in a region that requires age assurance.`, ) } else { props.closeDialog(() => { // set this after close! setDeviceGeolocation(props.geolocation) - Toast.show( - _(msg`Thanks! You're all set.`), - { - type: 'success', - }, - ) + Toast.show(l`Thanks! You're all set.`, { + type: 'success', + }) }) } }} @@ -297,7 +290,7 @@ export function NoAccessScreen() {