fix storybook (#3292)
parent
807c192fcf
commit
c52090dbfe
@ -1,12 +1,12 @@ |
|||||||
import React from 'react'; |
import React from 'react'; |
||||||
import { IntlProvider } from 'react-intl'; |
import { IntlProvider } from 'react-intl'; |
||||||
import { storiesOf } from '@kadira/storybook'; |
import { storiesOf } from '@kadira/storybook'; |
||||||
import getMessagesForLocale from 'mastodon/locales'; |
import en from 'mastodon/locales/en.json'; |
||||||
import LoadingIndicator from 'mastodon/components/loading_indicator'; |
import LoadingIndicator from 'mastodon/components/loading_indicator'; |
||||||
|
|
||||||
storiesOf('LoadingIndicator', module) |
storiesOf('LoadingIndicator', module) |
||||||
.add('default state', () => ( |
.add('default state', () => ( |
||||||
<IntlProvider locale='en' messages={getMessagesForLocale('en')}> |
<IntlProvider locale='en' messages={en}> |
||||||
<LoadingIndicator /> |
<LoadingIndicator /> |
||||||
</IntlProvider> |
</IntlProvider> |
||||||
)); |
)); |
||||||
|
Loading…
Reference in new issue