From 0d22614904b5a36d13b304ab3e2127ce26dac34a Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 2 Jul 2026 09:49:46 -0500 Subject: [PATCH] Move GPS link --- .../components/NoAccessScreen.tsx | 91 +++++++++---------- 1 file changed, 44 insertions(+), 47 deletions(-) diff --git a/src/ageAssurance/components/NoAccessScreen.tsx b/src/ageAssurance/components/NoAccessScreen.tsx index 1f50fa9821..79926b46ae 100644 --- a/src/ageAssurance/components/NoAccessScreen.tsx +++ b/src/ageAssurance/components/NoAccessScreen.tsx @@ -216,53 +216,50 @@ export function NoAccessScreen() { . This estimate may be inaccurate if you're using a VPN. - {' '} - {IS_NATIVE && ( - <> - - You can also{' '} - { - locationControl.open() - })} - style={[textStyles]}> - tap here to update your location with GPS. - - - - { - const access = - computeAgeAssuranceRegionAccess( - props.geolocation, - ) - 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.`, - ), - ) - } else { - props.closeDialog(() => { - // set this after close! - setDeviceGeolocation( - props.geolocation, - ) - Toast.show( - _(msg`Thanks! You're all set.`), - { - type: 'success', - }, - ) - }) - } - }} - /> - - )} + + + )} + {IS_NATIVE && ( + <> + {' '} + { + locationControl.open() + })} + style={[textStyles]}> + + Tap here to update your location via GPS. + + + { + const access = + computeAgeAssuranceRegionAccess( + props.geolocation, + ) + 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.`, + ), + ) + } else { + props.closeDialog(() => { + // set this after close! + setDeviceGeolocation(props.geolocation) + Toast.show( + _(msg`Thanks! You're all set.`), + { + type: 'success', + }, + ) + }) + } + }} + /> )}