Refine the clear all data experience
This commit is contained in:
parent
488ac22860
commit
8045a83374
11 changed files with 127 additions and 199 deletions
19
ts/components/ClearingData.stories.tsx
Normal file
19
ts/components/ClearingData.stories.tsx
Normal file
|
@ -0,0 +1,19 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { storiesOf } from '@storybook/react';
|
||||
import { action } from '@storybook/addon-actions';
|
||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
||||
import enMessages from '../../_locales/en/messages.json';
|
||||
|
||||
import { ClearingData } from './ClearingData';
|
||||
|
||||
const i18n = setupI18n('en', enMessages);
|
||||
|
||||
const story = storiesOf('Components/ClearingData', module);
|
||||
|
||||
story.add('Clearing data', () => (
|
||||
<ClearingData deleteAllData={action('deleteAllData')} i18n={i18n} />
|
||||
));
|
Loading…
Add table
Add a link
Reference in a new issue