Skip to content

Commit

Permalink
Merge pull request #823 from securityscorecard/table-docs-update
Browse files Browse the repository at this point in the history
docs: update Datatable persisted state docs
  • Loading branch information
julesbarr authored Oct 3, 2023
2 parents cd269b7 + 8b471fa commit 1e717bb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Binary file not shown.
16 changes: 16 additions & 0 deletions src/components/Datatable/DatatableTests.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { simpleColumns } from '../_internal/BaseTable/mocks/columns';
import { DatatableProps } from './Datatable.types';
import { DatatableStore, datatableInitialState } from './Datatable.store';
import { tableActionsMock } from './mocks/actions';
import { Text } from '../typographyLegacy';
import { Stack } from '../layout';

MockDate.set('2021-03-31T00:00:00Z');

Expand Down Expand Up @@ -302,3 +304,17 @@ WithPersistedState.args = {
...MinimalConfig.args,
id: 'persisted_state',
};
WithPersistedState.parameters = {
screenshot: { skip: true },
};
WithPersistedState.decorators = [
(storyFn) => (
<Stack gap="md">
<Text>
An id must be provided to the Datatable in order to persists the table
configuration.
</Text>
{storyFn()}
</Stack>
),
];

0 comments on commit 1e717bb

Please sign in to comment.