Files
helm-dashboard/frontend/src/components/ClustersList.stories.tsx
kame 4c84b795a0 Removal of ignore notation in storybook eslint and transition to actions function (#489)
* fix: desprecated .storybook/main.ts and actions-addons

* remove: ignore notation in storybook eslint and transition to actions function

* remove: unnecessary eslint ignore code
2023-11-04 15:53:26 +00:00

27 lines
702 B
TypeScript

import { Meta, StoryObj } from "@storybook/react";
import ClustersList from "./ClustersList";
const meta = {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: "ClustersList",
component: ClustersList,
} satisfies Meta<typeof ClustersList>;
export default meta;
//👇 We create a “template” of how args map to rendering
export const Default: StoryObj<typeof ClustersList> = {
args: {
filteredNamespaces: [""],
installedReleases: [],
selectedCluster: "",
},
argTypes: {
onClusterChange: { actions: "onClusterChange called" },
},
};