refactor: isolate stories
This commit is contained in:
parent
31c5ec8bbe
commit
9911ab0168
|
@ -1,17 +0,0 @@
|
||||||
import { StoryFn, Meta } from '@storybook/react';
|
|
||||||
import LumeDashboard from './LumeDashboard';
|
|
||||||
import LumeProvider from '../LumeProvider';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
title: 'LumeDashboard',
|
|
||||||
component: LumeDashboard,
|
|
||||||
} as Meta<typeof LumeDashboard>;
|
|
||||||
|
|
||||||
const Template: StoryFn<typeof LumeDashboard> = (args) => <LumeProvider>
|
|
||||||
<LumeDashboard {...args} />
|
|
||||||
</LumeProvider>;
|
|
||||||
|
|
||||||
export const Primary = Template.bind({});
|
|
||||||
Primary.args = {
|
|
||||||
// Add initial props here
|
|
||||||
};
|
|
|
@ -1,14 +0,0 @@
|
||||||
import { StoryFn, Meta } from '@storybook/react';
|
|
||||||
import LumeIdentity from './LumeIdentity';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
title: 'LumeIdentity',
|
|
||||||
component: LumeIdentity,
|
|
||||||
} as Meta<typeof LumeIdentity>;
|
|
||||||
|
|
||||||
const Template: StoryFn<typeof LumeIdentity> = (args) => <LumeIdentity {...args} />;
|
|
||||||
|
|
||||||
export const Primary = Template.bind({});
|
|
||||||
Primary.args = {
|
|
||||||
// Add initial props here
|
|
||||||
};
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
import { StoryFn, Meta } from "@storybook/react";
|
||||||
|
import LumeDashboard from "../src/components/lume/LumeDashboard/LumeDashboard.js";
|
||||||
|
import LumeProvider from "../src/components/lume/LumeProvider.js";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
title: "LumeDashboard",
|
||||||
|
component: LumeDashboard,
|
||||||
|
} as Meta<typeof LumeDashboard>;
|
||||||
|
|
||||||
|
const Template: StoryFn<typeof LumeDashboard> = (args) => (
|
||||||
|
<LumeProvider>
|
||||||
|
<LumeDashboard {...args} />
|
||||||
|
</LumeProvider>
|
||||||
|
);
|
||||||
|
|
||||||
|
export const Primary = Template.bind({});
|
||||||
|
Primary.args = {
|
||||||
|
// Add initial props here
|
||||||
|
};
|
|
@ -0,0 +1,16 @@
|
||||||
|
import { StoryFn, Meta } from "@storybook/react";
|
||||||
|
import LumeIdentity from "../src/components/lume/LumeIdentity/LumeIdentity.js";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
title: "LumeIdentity",
|
||||||
|
component: LumeIdentity,
|
||||||
|
} as Meta<typeof LumeIdentity>;
|
||||||
|
|
||||||
|
const Template: StoryFn<typeof LumeIdentity> = (args) => (
|
||||||
|
<LumeIdentity {...args} />
|
||||||
|
);
|
||||||
|
|
||||||
|
export const Primary = Template.bind({});
|
||||||
|
Primary.args = {
|
||||||
|
// Add initial props here
|
||||||
|
};
|
Loading…
Reference in New Issue