diff --git a/client/src/app/layout-providers.tsx b/client/src/app/layout-providers.tsx index 958af46..c4d998f 100644 --- a/client/src/app/layout-providers.tsx +++ b/client/src/app/layout-providers.tsx @@ -5,7 +5,6 @@ import { PropsWithChildren, useState } from 'react'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { TooltipProvider } from '@/components/ui/tooltip'; - import { notesESA, openSans } from '@/styles/fonts'; export default function Providers({ children }: PropsWithChildren) { diff --git a/client/src/components/map/layers/marker/index.tsx b/client/src/components/map/layers/marker/index.tsx index 5f6585e..3a9752c 100644 --- a/client/src/components/map/layers/marker/index.tsx +++ b/client/src/components/map/layers/marker/index.tsx @@ -1,11 +1,15 @@ +'use client'; + import { Marker as RMarker } from 'react-map-gl'; +import { XIcon } from 'lucide-react'; + import { cn } from '@/lib/classnames'; +import { useIsMobile } from '@/hooks/screen-size'; + import { Button } from '@/components/ui/button'; import CategoryIcon from '@/components/ui/category-icon'; -import { useBreakpoint } from '@/hooks/screen-size'; -import { XIcon } from 'lucide-react'; type MarkerProps = { markers?: (GeoJSON.Feature | null)[]; @@ -16,7 +20,7 @@ type MarkerProps = { const Marker = ({ markers, handleClick, handleClose }: MarkerProps) => { const { coordinates } = markers?.[0]?.geometry || {}; - const isMobile = !useBreakpoint()('sm'); + const isMobile = useIsMobile(); if (!coordinates?.length) return null; @@ -55,9 +59,9 @@ const Marker = ({ markers, handleClick, handleClose }: MarkerProps) => { />

{marker?.properties?.categoryName}