diff --git a/src/components/elements/MapPolygonPanel/MapPolygonPanel.stories.tsx b/src/components/elements/MapPolygonPanel/MapPolygonPanel.stories.tsx index f25a2ebaa..d672b1500 100644 --- a/src/components/elements/MapPolygonPanel/MapPolygonPanel.stories.tsx +++ b/src/components/elements/MapPolygonPanel/MapPolygonPanel.stories.tsx @@ -13,47 +13,37 @@ type Story = StoryObj; export const Default: Story = { render: args => { - const [query, setQuery] = useState(); + const [query] = useState(); return (
- (query ? item.title.includes(query) : item))} - onSearch={setQuery} - /> + (query ? item.title.includes(query) : item))} />
); }, args: { title: "Project Sites", - onSelectItem: console.log, - stateViewPanel: false + onSelectItem: console.log } }; export const OpenPolygonCheck: Story = { render: args => { - const [query, setQuery] = useState(); + const [query] = useState(); return (
- (query ? item.title.includes(query) : item))} - onSearch={setQuery} - /> + (query ? item.title.includes(query) : item))} />
); }, args: { title: "Project Sites", - onSelectItem: console.log, - stateViewPanel: true + onSelectItem: console.log } }; @@ -62,37 +52,55 @@ const items = [ uuid: "1", title: "Puerto Princesa Subterranean River National Park Forest Corridor", subtitle: "Created 03/12/21", - refContainer: null + status: "success", + refContainer: null, + setClickedButton: () => {}, + type: "sites" }, { uuid: "2", title: "A medium sized project site to see how it looks with 2 lines", subtitle: "Created 03/12/21", - refContainer: null + status: "success", + refContainer: null, + setClickedButton: () => {}, + type: "sites" }, { uuid: "3", title: "A shorter project site", subtitle: "Created 03/12/21", - refContainer: null + status: "success", + refContainer: null, + setClickedButton: () => {}, + type: "sites" }, { uuid: "4", title: "Very long name A medium sized project site to see how it looks with 2 lines A medium sized project site to see how it looks with 2 lines A medium sized project site to see how it looks with 2 lines", subtitle: "Created 03/12/21", - refContainer: null + status: "success", + refContainer: null, + setClickedButton: () => {}, + type: "sites" }, { uuid: "5", title: "A shorter project site", subtitle: "Created 03/12/21", - refContainer: null + status: "success", + refContainer: null, + setClickedButton: () => {}, + type: "sites" }, { uuid: "6", title: "A shorter project site", subtitle: "Created 03/12/21", - refContainer: null + status: "success", + refContainer: null, + setClickedButton: () => {}, + type: "sites" } ];