Skip to content

Commit

Permalink
Cleanup stories
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinkipruto committed Aug 30, 2024
1 parent 4d7b5fb commit 1e51b8e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import React from "react";

import DropdownSearch from ".";

import { searchArgs } from "@/climatemappedafrica/config";

export default {
title: "Components/DropdownSearch",
argTypes: {
Expand All @@ -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,
},
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -19,5 +19,4 @@ export const Default = Template.bind({});

Default.args = {
locations,
...panelArgs,
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import React from "react";

import PanelButtonGroup from ".";

import { panelArgs } from "@/climatemappedafrica/config";

export default {
title: "Components/HURUmap/PanelButtonGroup",
argTypes: {},
Expand All @@ -15,4 +13,4 @@ function Template({ ...args }) {

export const Default = Template.bind({});

Default.args = panelArgs;
Default.args = {};
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -14,4 +13,4 @@ function Template({ ...args }) {

export const Default = Template.bind({});

Default.args = treeViewArgs;
Default.args = {};

0 comments on commit 1e51b8e

Please sign in to comment.