From 81178689447fe5c2e719a5a2d8bad1641a4c4c2c Mon Sep 17 00:00:00 2001 From: Chris Short <13677134+devcshort@users.noreply.github.com> Date: Wed, 31 Jan 2024 17:15:08 -0800 Subject: [PATCH] Remove directions button from map --- .../client/plugins/mapbox/components/map.tsx | 28 +------------------ 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/packages/client/plugins/mapbox/components/map.tsx b/packages/client/plugins/mapbox/components/map.tsx index 09c00c04..590a13bd 100644 --- a/packages/client/plugins/mapbox/components/map.tsx +++ b/packages/client/plugins/mapbox/components/map.tsx @@ -8,7 +8,7 @@ import { useEffect, useMemo, useRef } from 'react'; import { renderToStaticMarkup } from 'react-dom/server'; import { Stack, Title, useMantineTheme, Text, Group } from '@mantine/core'; import { useAppConfig } from '../../../lib/hooks/useAppConfig'; -import { IconNavigation, IconPhone, IconWorldWww } from '@tabler/icons-react'; +import { IconPhone, IconWorldWww } from '@tabler/icons-react'; import { useRouter } from 'next/router'; import 'mapbox-gl/dist/mapbox-gl.css'; import { useTranslation } from 'next-i18next'; @@ -71,11 +71,6 @@ export function MapComponent({ locations = [] }: Props) { if (!map.current) return; const bounds = new LngLatBounds(); - const coords = ((router.query?.coords as string) ?? '') - .split(',') - .slice() - .reverse() - .join(','); // remove all current markers markers.current.forEach((marker) => marker.remove()); @@ -142,27 +137,6 @@ export function MapComponent({ locations = [] }: Props) { {t('call_to_action.view_website')} - - - - - {t('call_to_action.get_directions')} - - )