diff --git a/src/frontend/screens/MapScreen/GPSPermissions/GPSPermissionsDisabled.tsx b/src/frontend/screens/MapScreen/GPSPermissions/GPSPermissionsDisabled.tsx index 7e279900e..29b409653 100644 --- a/src/frontend/screens/MapScreen/GPSPermissions/GPSPermissionsDisabled.tsx +++ b/src/frontend/screens/MapScreen/GPSPermissions/GPSPermissionsDisabled.tsx @@ -25,10 +25,12 @@ const m = defineMessages({ }, }); -interface GPSDisabled { +interface GPSPermissionsDisabled { setIsGranted: React.Dispatch>; } -export const GPSDisabled: React.FC = ({setIsGranted}) => { +export const GPSPermissionsDisabled: React.FC = ({ + setIsGranted, +}) => { const {formatMessage} = useIntl(); const requestForLocationPermissions = async () => { const [foregroundPermission, backgroundPermission] = await Promise.all([ diff --git a/src/frontend/screens/MapScreen/GPSPermissions/GPSPermissionsEnabled.tsx b/src/frontend/screens/MapScreen/GPSPermissions/GPSPermissionsEnabled.tsx index cadbc903c..9ef41fd40 100644 --- a/src/frontend/screens/MapScreen/GPSPermissions/GPSPermissionsEnabled.tsx +++ b/src/frontend/screens/MapScreen/GPSPermissions/GPSPermissionsEnabled.tsx @@ -27,7 +27,7 @@ const m = defineMessages({ }, }); -export const GPSEnabled = () => { +export const GPSPermissionsEnabled = () => { const {formatMessage} = useIntl(); const {isTracking, cancelTracking, startTracking, loading} = useTracking(); const {timer} = useTrackTimerContext(); diff --git a/src/frontend/screens/MapScreen/GPSPermissions/GPSPermissionsModal.tsx b/src/frontend/screens/MapScreen/GPSPermissions/GPSPermissionsModal.tsx index c560cc623..6a87124a2 100644 --- a/src/frontend/screens/MapScreen/GPSPermissions/GPSPermissionsModal.tsx +++ b/src/frontend/screens/MapScreen/GPSPermissions/GPSPermissionsModal.tsx @@ -1,6 +1,6 @@ import React, {useEffect, useState} from 'react'; -import {GPSDisabled} from './GPSPermissionsDisabled'; -import {GPSEnabled} from './GPSPermissionsEnabled'; +import {GPSPermissionsDisabled} from './GPSPermissionsDisabled'; +import {GPSPermissionsEnabled} from './GPSPermissionsEnabled'; import * as Location from 'expo-location'; import {useGPSModalContext} from '../../../contexts/GPSModalContext'; import {useTabNavigationStore} from '../../../hooks/useTabNavigationStore.ts'; @@ -10,7 +10,7 @@ import {StyleSheet} from 'react-native'; import {TabName} from '../../../Navigation/types'; import {useFocusEffect} from '@react-navigation/native'; -export const GPSModal = React.memo(() => { +export const GPSPermissionsModal = React.memo(() => { const {setCurrentTab} = useTabNavigationStore(); const [backgroundStatus] = Location.useBackgroundPermissions(); const [foregroundStatus] = Location.useForegroundPermissions(); @@ -41,9 +41,9 @@ export const GPSModal = React.memo(() => { handleComponent={() => null}> {isGranted ? ( - + ) : ( - + )} diff --git a/src/frontend/screens/MapScreen/index.tsx b/src/frontend/screens/MapScreen/index.tsx index 899496083..2d80fbd3e 100644 --- a/src/frontend/screens/MapScreen/index.tsx +++ b/src/frontend/screens/MapScreen/index.tsx @@ -17,7 +17,7 @@ import ScaleBar from 'react-native-scale-bar'; import {getCoords} from '../../hooks/useLocation'; import {useLastKnownLocation} from '../../hooks/useLastSavedLocation'; import {useLocationProviderStatus} from '../../hooks/useLocationProviderStatus'; -import {GPSModal} from './GPSPermissions/GPSPermissionsModal'; +import {GPSPermissionsModal} from './GPSPermissions/GPSPermissionsModal'; import {TrackPathLayer} from './track/TrackPathLayer'; import {UserLocation} from './UserLocation'; import {useSharedLocationContext} from '../../contexts/SharedLocationContext'; @@ -122,7 +122,7 @@ export const MapScreen = () => { onPress={handleAddPress} isLoading={!isFinishedLoading} /> - + ); };