From bbc0673992772157fe8352309ff6b17c3eb5f975 Mon Sep 17 00:00:00 2001 From: DanisAvko Date: Mon, 23 Sep 2024 13:59:21 +0300 Subject: [PATCH] chore: story added --- .../Table/__stories__/Table.stories.tsx | 5 +++++ .../Table/__stories__/stories/SizeSStory.tsx | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/components/Table/__stories__/stories/SizeSStory.tsx diff --git a/src/components/Table/__stories__/Table.stories.tsx b/src/components/Table/__stories__/Table.stories.tsx index 173c78f..3df50cd 100644 --- a/src/components/Table/__stories__/Table.stories.tsx +++ b/src/components/Table/__stories__/Table.stories.tsx @@ -5,6 +5,7 @@ import {Table} from '../index'; import {DefaultStory} from './stories/DefaultStory'; import {ReorderingStory} from './stories/ReorderingStory'; import {ReorderingWithVirtualizationStory} from './stories/ReorderingWithVirtualizationStory'; +import {SizeSStory} from './stories/SizeSStory'; import {StickyHeaderStory} from './stories/StickyHeaderStory'; import {VirtualizationStory} from './stories/VirtualizationStory'; import {WindowVirtualizationStory} from './stories/WindowVirtualizationStory'; @@ -21,6 +22,10 @@ export const Default: StoryObj = { render: DefaultStory, }; +export const SizeS: StoryObj = { + render: SizeSStory, +}; + export const WithSelection: StoryObj = { render: WithSelectionStory, }; diff --git a/src/components/Table/__stories__/stories/SizeSStory.tsx b/src/components/Table/__stories__/stories/SizeSStory.tsx new file mode 100644 index 0000000..e391bc2 --- /dev/null +++ b/src/components/Table/__stories__/stories/SizeSStory.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +import {useTable} from '../../../../hooks'; +import {columns} from '../../../BaseTable/__stories__/constants/columns'; +import {data} from '../../../BaseTable/__stories__/constants/data'; +import {Table} from '../../index'; + +export const SizeSStory = () => { + const table = useTable({ + columns, + data, + }); + + return ; +};