mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 14:28:04 +00:00
Rename frontend directory (#472)
* Rename directory * Cleanup * Recover lost images * remove lint
This commit is contained in:
32
frontend/src/components/repository/ChartViewer.stories.tsx
Normal file
32
frontend/src/components/repository/ChartViewer.stories.tsx
Normal file
@@ -0,0 +1,32 @@
|
||||
// ChartViewer.stories.ts|tsx
|
||||
|
||||
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
||||
import ChartViewer from "./ChartViewer";
|
||||
|
||||
//👇 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: "ChartViewer",
|
||||
component: ChartViewer,
|
||||
} as ComponentMeta<typeof ChartViewer>;
|
||||
|
||||
//👇 We create a “template” of how args map to rendering
|
||||
const Template: ComponentStory<typeof ChartViewer> = (args) => (
|
||||
<ChartViewer {...args} />
|
||||
);
|
||||
|
||||
export const Default = Template.bind({});
|
||||
|
||||
const defaultArgs = {
|
||||
chart: {
|
||||
name: "chart1",
|
||||
description: "chart1 description",
|
||||
version: "v1.0.0",
|
||||
},
|
||||
};
|
||||
|
||||
//@ts-ignore
|
||||
Default.args = defaultArgs;
|
||||
Reference in New Issue
Block a user