Move GPS link

This commit is contained in:
Eric Bailey
2026-07-02 09:49:46 -05:00
parent f023e34bca
commit 0d22614904
+44 -47
View File
@@ -216,53 +216,50 @@ export function NoAccessScreen() {
</Text> </Text>
. This estimate may be inaccurate if you're . This estimate may be inaccurate if you're
using a VPN. using a VPN.
</Trans>{' '} </Trans>
{IS_NATIVE && ( </>
<> )}
<Trans> {IS_NATIVE && (
You can also{' '} <>
<SimpleInlineLinkText {' '}
label={_(msg`Update your location`)} <SimpleInlineLinkText
{...createStaticClick(() => { label={_(msg`Update your location`)}
locationControl.open() {...createStaticClick(() => {
})} locationControl.open()
style={[textStyles]}> })}
tap here to update your location with GPS. style={[textStyles]}>
</SimpleInlineLinkText> <Trans>
</Trans> Tap here to update your location via GPS.
</Trans>
<DeviceLocationRequestDialog </SimpleInlineLinkText>
control={locationControl} <DeviceLocationRequestDialog
onLocationAcquired={props => { control={locationControl}
const access = onLocationAcquired={props => {
computeAgeAssuranceRegionAccess( const access =
props.geolocation, computeAgeAssuranceRegionAccess(
) props.geolocation,
if (access !== aa.Access.Full) { )
props.disableDialogAction() if (access !== aa.Access.Full) {
props.setDialogError( 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.`, _(
), 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(() => { } else {
// set this after close! props.closeDialog(() => {
setDeviceGeolocation( // set this after close!
props.geolocation, setDeviceGeolocation(props.geolocation)
) Toast.show(
Toast.show( _(msg`Thanks! You're all set.`),
_(msg`Thanks! You're all set.`), {
{ type: 'success',
type: 'success', },
}, )
) })
}) }
} }}
}} />
/>
</>
)}
</> </>
)} )}
</Text> </Text>