Skip to content

Commit 457074d

Browse files
committed
fix storybook naming for tables
1 parent 5074d5e commit 457074d

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/lib/components/paginated-table/paginated-table.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import TableHead from '../table-head/table-head';
1414

1515
export default {
1616
component: PaginatedTable,
17-
title: 'Components/Display/Table',
17+
title: 'Components/Display/PaginatedTable',
1818
subcomponents: { TableDataHeader, TableRow, TableData, TableHead },
1919
args: {
2020
renderHeader: () => (
@@ -175,4 +175,4 @@ const Template: StoryFn<typeof PaginatedTable> = (
175175
);
176176
};
177177

178-
export const WithPagination = Template.bind({});
178+
export const Primary = Template.bind({});

src/lib/components/table/table.stories.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ export default meta;
5959

6060
type Story = StoryObj<typeof meta>;
6161

62+
export const Primary: Story = {
63+
render: (args) => (
64+
<PageTile>
65+
<Table {...args} />
66+
</PageTile>
67+
),
68+
};
69+
6270
export const WithHeader: Story = {
6371
render: (args) => (
6472
<PageTile>

0 commit comments

Comments
 (0)