diff --git a/frontend/src/lib/components/Map/Map.stories.tsx b/frontend/src/lib/components/Map/Map.stories.tsx index 437161ad1dcdd..41807351e6367 100644 --- a/frontend/src/lib/components/Map/Map.stories.tsx +++ b/frontend/src/lib/components/Map/Map.stories.tsx @@ -1,26 +1,22 @@ import type { Meta, StoryObj } from '@storybook/react' -import { Marker } from 'maplibre-gl' -import { Map, MapComponent } from './Map' +import { Map } from './Map' + +const coordinates: [number, number] = [0.119167, 52.205276] const meta: Meta = { title: 'Components/Map', component: Map, tags: ['autodocs'], -} -type Story = StoryObj - -const coordinates: [number, number] = [0.119167, 52.205276] - -export const Unavailable: Story = {} - -export const Basic: Story = { - render: (args) => , + // :TRICKY: We can't use markers in Storybook stories, as the Marker class is + // not JSON-serializable (circular structure). args: { center: coordinates, - markers: [new Marker({ color: 'var(--primary)' }).setLngLat(coordinates)], className: 'h-60', }, } +type Story = StoryObj + +export const Basic: Story = {} export default meta