diff options
author | Eric Bailey <git@esb.lol> | 2025-07-17 14:32:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-17 14:32:58 -0500 |
commit | 964eed54eaa53f0912b336391642654cb8a0f605 (patch) | |
tree | fa5beda05823ca6025e8bcec4ad711f52919baba /src/components/ageAssurance/AgeRestrictedScreen.tsx | |
parent | 00b017804bcb811b5f9292a88619423df3a29ef8 (diff) | |
download | voidsky-964eed54eaa53f0912b336391642654cb8a0f605.tar.zst |
Age assurance fast-follows (#8656)
* Add feed banner * Comment * Update nux name * Handle did error * Hide mod settings if underage or age restricted * Add metrics * Remove DEV override * Copy suggestion * Small copy edits * useState * Fix bug * Update src/components/ageAssurance/useAgeAssuranceCopy.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Get rid of debug button --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
Diffstat (limited to 'src/components/ageAssurance/AgeRestrictedScreen.tsx')
-rw-r--r-- | src/components/ageAssurance/AgeRestrictedScreen.tsx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/components/ageAssurance/AgeRestrictedScreen.tsx b/src/components/ageAssurance/AgeRestrictedScreen.tsx index 2a9882415..b47cc5b0c 100644 --- a/src/components/ageAssurance/AgeRestrictedScreen.tsx +++ b/src/components/ageAssurance/AgeRestrictedScreen.tsx @@ -3,6 +3,7 @@ import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useAgeAssurance} from '#/state/ageAssurance/useAgeAssurance' +import {logger} from '#/state/ageAssurance/util' import {atoms as a} from '#/alf' import {Admonition} from '#/components/Admonition' import {AgeAssuranceBadge} from '#/components/ageAssurance/AgeAssuranceBadge' @@ -61,13 +62,11 @@ export function AgeRestrictedScreen({ <View style={[a.gap_sm, a.pb_lg]}> <Text style={[a.text_xl, a.leading_snug, a.font_heavy]}> <Trans> - You must verify your age in order to access this screen. + You must complete age assurance in order to access this screen. </Trans> </Text> - <Text style={[a.text_md, a.leading_snug]}> - <Trans>{copy.notice}</Trans> - </Text> + <Text style={[a.text_md, a.leading_snug]}>{copy.notice}</Text> </View> <View @@ -77,7 +76,10 @@ export function AgeRestrictedScreen({ to="/settings/account" size="small" variant="solid" - color="primary"> + color="primary" + onPress={() => { + logger.metric('ageAssurance:navigateToSettings', {}) + }}> <ButtonText> <Trans>Go to account settings</Trans> </ButtonText> |