闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
872 B

  1. import React from 'react';
  2. import { Provider } from 'react-redux';
  3. import { IntlProvider } from 'react-intl';
  4. import { storiesOf } from '@storybook/react';
  5. import { action } from '@storybook/addon-actions';
  6. import en from 'mastodon/locales/en.json';
  7. import configureStore from 'mastodon/store/configureStore';
  8. import { hydrateStore } from 'mastodon/actions/store';
  9. import OnboadingModal from 'mastodon/features/ui/components/onboarding_modal';
  10. import initialState from '../initial_state';
  11. const store = configureStore();
  12. store.dispatch(hydrateStore(initialState));
  13. storiesOf('OnboadingModal', module)
  14. .add('default state', () => (
  15. <IntlProvider locale='en' messages={en}>
  16. <Provider store={store}>
  17. <div style={{ position: 'absolute' }}>
  18. <OnboadingModal onClose={action('close')} />
  19. </div>
  20. </Provider>
  21. </IntlProvider>
  22. ));