Move GPS link
This commit is contained in:
@@ -216,21 +216,22 @@ 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 && (
|
{IS_NATIVE && (
|
||||||
<>
|
<>
|
||||||
<Trans>
|
{' '}
|
||||||
You can also{' '}
|
|
||||||
<SimpleInlineLinkText
|
<SimpleInlineLinkText
|
||||||
label={_(msg`Update your location`)}
|
label={_(msg`Update your location`)}
|
||||||
{...createStaticClick(() => {
|
{...createStaticClick(() => {
|
||||||
locationControl.open()
|
locationControl.open()
|
||||||
})}
|
})}
|
||||||
style={[textStyles]}>
|
style={[textStyles]}>
|
||||||
tap here to update your location with GPS.
|
<Trans>
|
||||||
</SimpleInlineLinkText>
|
Tap here to update your location via GPS.
|
||||||
</Trans>
|
</Trans>
|
||||||
|
</SimpleInlineLinkText>
|
||||||
<DeviceLocationRequestDialog
|
<DeviceLocationRequestDialog
|
||||||
control={locationControl}
|
control={locationControl}
|
||||||
onLocationAcquired={props => {
|
onLocationAcquired={props => {
|
||||||
@@ -248,9 +249,7 @@ export function NoAccessScreen() {
|
|||||||
} else {
|
} else {
|
||||||
props.closeDialog(() => {
|
props.closeDialog(() => {
|
||||||
// set this after close!
|
// set this after close!
|
||||||
setDeviceGeolocation(
|
setDeviceGeolocation(props.geolocation)
|
||||||
props.geolocation,
|
|
||||||
)
|
|
||||||
Toast.show(
|
Toast.show(
|
||||||
_(msg`Thanks! You're all set.`),
|
_(msg`Thanks! You're all set.`),
|
||||||
{
|
{
|
||||||
@@ -263,8 +262,6 @@ export function NoAccessScreen() {
|
|||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user