闭社主体 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.

23 lines
691 B

  1. import { configure, setAddon } from '@kadira/storybook';
  2. import IntlAddon from 'react-storybook-addon-intl';
  3. import React from 'react';
  4. import { storiesOf, action } from '@kadira/storybook';
  5. import { addLocaleData } from 'react-intl';
  6. import en from 'react-intl/locale-data/en';
  7. import '../app/assets/stylesheets/components.scss'
  8. import './storybook.scss'
  9. setAddon(IntlAddon);
  10. addLocaleData(en);
  11. window.storiesOf = storiesOf;
  12. window.action = action;
  13. window.React = React;
  14. function loadStories () {
  15. require('./stories/loading_indicator.story.jsx');
  16. require('./stories/button.story.jsx');
  17. require('./stories/autosuggest_textarea.story.jsx');
  18. }
  19. configure(loadStories, module);