This commit is contained in:
Eric Bailey
2025-12-04 11:00:15 -06:00
parent 3d1a03d58f
commit 0c19fe8ade
2 changed files with 10 additions and 14 deletions
+9 -13
View File
@@ -41,6 +41,8 @@ import {
} from '#/ageAssurance/util'
import {useDeviceGeolocationApi} from '#/geolocation'
const textStyles = [a.text_md, a.leading_snug]
export function NoAccessScreen() {
const t = useTheme()
const {_} = useLingui()
@@ -63,14 +65,6 @@ export function NoAccessScreen() {
logger.metric(`blockedGeoOverlay:shown`, {})
}, [])
const textStyles = [a.text_md, a.leading_normal]
const blocks = [
_(
msg`You are accessing Bluesky from a region that legally requires us to verify your age before allowing you to access the app.`,
),
]
const onPressLogout = useCallback(() => {
if (isWeb) {
// We're switching accounts, which remounts the entire app.
@@ -144,11 +138,13 @@ export function NoAccessScreen() {
{isAARegion ? (
<>
<View style={[a.gap_lg]}>
{blocks.map((block, index) => (
<Text key={index} style={[textStyles]}>
{block}
</Text>
))}
<Text style={[textStyles]}>
<Trans>
You are accessing Bluesky from a region that legally
requires us to verify your age before allowing you to
access the app.
</Trans>
</Text>
{birthdateUpdateText}
</View>
+1 -1
View File
@@ -2,7 +2,7 @@ import * as aaDebug from '#/ageAssurance/debug'
import {IS_DEV} from '#/env'
import {type Geolocation} from '#/geolocation/types'
const localEnabled = false
const localEnabled = true
export const enabled = IS_DEV && (localEnabled || aaDebug.geolocation)
export const geolocation: Geolocation = aaDebug.geolocation ?? {
countryCode: 'AU',