From 1e51b8e4623cc120efc95c83a563ff3c2990b670 Mon Sep 17 00:00:00 2001 From: Kipruto <43873157+kelvinkipruto@users.noreply.github.com> Date: Fri, 30 Aug 2024 12:24:30 +0300 Subject: [PATCH] Cleanup stories --- .../components/DropdownSearch/index.stories.js | 18 +++++++++++++++--- .../components/HURUmap/Panel/index.stories.js | 3 +-- .../HURUmap/PanelButtonGroup/index.stories.js | 4 +--- .../HURUmap/TreeView/index.stories.js | 3 +-- 4 files changed, 18 insertions(+), 10 deletions(-) diff --git a/apps/climatemappedafrica/src/components/DropdownSearch/index.stories.js b/apps/climatemappedafrica/src/components/DropdownSearch/index.stories.js index ab1f9de10..eabebcb54 100644 --- a/apps/climatemappedafrica/src/components/DropdownSearch/index.stories.js +++ b/apps/climatemappedafrica/src/components/DropdownSearch/index.stories.js @@ -2,8 +2,6 @@ import React from "react"; import DropdownSearch from "."; -import { searchArgs } from "@/climatemappedafrica/config"; - export default { title: "Components/DropdownSearch", argTypes: { @@ -27,5 +25,19 @@ function Template({ ...args }) { export const Default = Template.bind({}); Default.args = { - ...searchArgs, + label: "Search for Location", + counties: [ + { + name: "Nairobi", + code: 47, + }, + { + name: "Marsabit", + code: 10, + }, + { + name: "Meru", + code: 6, + }, + ], }; diff --git a/apps/climatemappedafrica/src/components/HURUmap/Panel/index.stories.js b/apps/climatemappedafrica/src/components/HURUmap/Panel/index.stories.js index 3ee08ac4d..83bf73dca 100644 --- a/apps/climatemappedafrica/src/components/HURUmap/Panel/index.stories.js +++ b/apps/climatemappedafrica/src/components/HURUmap/Panel/index.stories.js @@ -2,7 +2,7 @@ import React from "react"; import Panel from "."; -import { hurumapArgs, panelArgs } from "@/climatemappedafrica/config"; +import { hurumapArgs } from "@/climatemappedafrica/config"; const { locations } = hurumapArgs; @@ -19,5 +19,4 @@ export const Default = Template.bind({}); Default.args = { locations, - ...panelArgs, }; diff --git a/apps/climatemappedafrica/src/components/HURUmap/PanelButtonGroup/index.stories.js b/apps/climatemappedafrica/src/components/HURUmap/PanelButtonGroup/index.stories.js index e78cffde6..28d355289 100644 --- a/apps/climatemappedafrica/src/components/HURUmap/PanelButtonGroup/index.stories.js +++ b/apps/climatemappedafrica/src/components/HURUmap/PanelButtonGroup/index.stories.js @@ -2,8 +2,6 @@ import React from "react"; import PanelButtonGroup from "."; -import { panelArgs } from "@/climatemappedafrica/config"; - export default { title: "Components/HURUmap/PanelButtonGroup", argTypes: {}, @@ -15,4 +13,4 @@ function Template({ ...args }) { export const Default = Template.bind({}); -Default.args = panelArgs; +Default.args = {}; diff --git a/apps/climatemappedafrica/src/components/HURUmap/TreeView/index.stories.js b/apps/climatemappedafrica/src/components/HURUmap/TreeView/index.stories.js index 5f40b59bd..95b1232c9 100644 --- a/apps/climatemappedafrica/src/components/HURUmap/TreeView/index.stories.js +++ b/apps/climatemappedafrica/src/components/HURUmap/TreeView/index.stories.js @@ -1,7 +1,6 @@ import React from "react"; import TreeView from "@/climatemappedafrica/components/HURUmap/TreeView"; -import { treeViewArgs } from "@/climatemappedafrica/config"; export default { title: "Components/HURUmap/TreeView", @@ -14,4 +13,4 @@ function Template({ ...args }) { export const Default = Template.bind({}); -Default.args = treeViewArgs; +Default.args = {};