mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-28 15:28:04 +00:00
Rename frontend directory (#472)
* Rename directory * Cleanup * Recover lost images * remove lint
This commit is contained in:
29
frontend/src/components/ClustersList.stories.tsx
Normal file
29
frontend/src/components/ClustersList.stories.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable no-console */
|
||||
// ClustersListBar.stories.ts|tsx
|
||||
|
||||
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
||||
import ClustersList from "./ClustersList";
|
||||
|
||||
//👇 This default export determines where your story goes in the story list
|
||||
export default {
|
||||
/* 👇 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,
|
||||
} as ComponentMeta<typeof ClustersList>;
|
||||
|
||||
//👇 We create a “template” of how args map to rendering
|
||||
const Template: ComponentStory<typeof ClustersList> = () => (
|
||||
<ClustersList
|
||||
filteredNamespaces={[""]}
|
||||
installedReleases={[]}
|
||||
onClusterChange={() => {
|
||||
console.log("onClusterChange called");
|
||||
}}
|
||||
selectedCluster={""}
|
||||
/>
|
||||
);
|
||||
|
||||
export const Default = Template.bind({});
|
||||
Reference in New Issue
Block a user