Migrate ResetSessionNotification to Storybook

This commit is contained in:
Chris Svenningsen 2020-08-25 13:10:37 -07:00 committed by Josh Perez
parent 58db34c5e8
commit 812b1c5b21
3 changed files with 21 additions and 8 deletions

View file

@ -0,0 +1,20 @@
import * as React from 'react';
import { storiesOf } from '@storybook/react';
import { ResetSessionNotification } from './ResetSessionNotification';
// @ts-ignore
import { setup as setupI18n } from '../../../js/modules/i18n';
// @ts-ignore
import enMessages from '../../../_locales/en/messages.json';
const i18n = setupI18n('en', enMessages);
const story = storiesOf(
'Components/Conversation/ResetSessionNotification',
module
);
story.add('Notification', () => {
return <ResetSessionNotification i18n={i18n} />;
});