diff --git a/src/components/MapView/MapView.tsx b/src/components/MapView/MapView.tsx index 06128c0d06b7..48d820ae5103 100644 --- a/src/components/MapView/MapView.tsx +++ b/src/components/MapView/MapView.tsx @@ -4,9 +4,8 @@ import Mapbox, {MarkerView, setAccessToken} from '@rnmapbox/maps'; import {forwardRef, memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState} from 'react'; import {View} from 'react-native'; import {withOnyx} from 'react-native-onyx'; -import Icon from '@components/Icon'; +import Button from '@components/Button'; import * as Expensicons from '@components/Icon/Expensicons'; -import {PressableWithoutFeedback} from '@components/Pressable'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; import * as UserLocation from '@libs/actions/UserLocation'; @@ -14,7 +13,6 @@ import getCurrentPosition from '@libs/getCurrentPosition'; import type {GeolocationErrorCallback} from '@libs/getCurrentPosition/getCurrentPosition.types'; import {GeolocationErrorCode} from '@libs/getCurrentPosition/getCurrentPosition.types'; import colors from '@styles/theme/colors'; -import variables from '@styles/variables'; import CONST from '@src/CONST'; import useLocalize from '@src/hooks/useLocalize'; import useNetwork from '@src/hooks/useNetwork'; @@ -238,20 +236,13 @@ const MapView = forwardRef( {directionCoordinates && } - - - - - + /> ) : ( diff --git a/src/components/MapView/MapView.website.tsx b/src/components/MapView/MapView.website.tsx index bf951dcb28fd..640469126874 100644 --- a/src/components/MapView/MapView.website.tsx +++ b/src/components/MapView/MapView.website.tsx @@ -10,15 +10,13 @@ import type {MapRef} from 'react-map-gl'; import Map, {Marker} from 'react-map-gl'; import {View} from 'react-native'; import {withOnyx} from 'react-native-onyx'; -import Icon from '@components/Icon'; +import Button from '@components/Button'; import * as Expensicons from '@components/Icon/Expensicons'; -import {PressableWithoutFeedback} from '@components/Pressable'; import useStyleUtils from '@hooks/useStyleUtils'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; import type {GeolocationErrorCallback} from '@libs/getCurrentPosition/getCurrentPosition.types'; import {GeolocationErrorCode} from '@libs/getCurrentPosition/getCurrentPosition.types'; -import variables from '@styles/variables'; import * as UserLocation from '@userActions/UserLocation'; import CONST from '@src/CONST'; import useLocalize from '@src/hooks/useLocalize'; @@ -253,20 +251,13 @@ const MapView = forwardRef( {directionCoordinates && } - - - - - + /> ) : (