Skip to content

Commit 0f63691

Browse files
committed
feat: new stories
1 parent b272f4f commit 0f63691

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

packages/ui-components/src/Common/Switch/index.stories.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,16 @@
11
import type { Meta as MetaObj, StoryObj } from '@storybook/react';
2-
import { useState } from 'react';
32

43
import Switch from '#ui/Common/Switch';
54

65
type Story = StoryObj<typeof Switch>;
76
type Meta = MetaObj<typeof Switch>;
87

9-
export const Uncontrolled: Story = {
8+
export const WithLabel: Story = {
109
args: {
1110
label: 'Enable Feature',
1211
},
1312
};
1413

15-
export const Controlled: Story = {
16-
args: {
17-
label: 'Enable Feature',
18-
},
19-
render: args => {
20-
const [checked, setChecked] = useState(false);
21-
22-
return <Switch {...args} checked={checked} onCheckedChange={setChecked} />;
23-
},
24-
};
25-
2614
export const WithoutLabel: Story = {};
2715

2816
export default {

0 commit comments

Comments
 (0)