hometown/storybook/stories/loading_indicator.story.js

14 lines
449 B
JavaScript
Raw Normal View History

2017-05-13 13:55:56 +00:00
import React from 'react';
import { IntlProvider } from 'react-intl';
2017-06-04 14:26:07 +00:00
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
2017-05-25 03:23:14 +00:00
import en from 'mastodon/locales/en.json';
2017-05-13 13:55:56 +00:00
import LoadingIndicator from 'mastodon/components/loading_indicator';
storiesOf('LoadingIndicator', module)
.add('default state', () => (
2017-05-25 03:23:14 +00:00
<IntlProvider locale='en' messages={en}>
2017-05-13 13:55:56 +00:00
<LoadingIndicator />
</IntlProvider>
));