config.tsx 509 B

12345678910111213141516171819
  1. import React from 'react'
  2. import { configure, addDecorator } from '@storybook/react';
  3. import '@storybook/addon-console';
  4. import StoryRouter from 'storybook-react-router';
  5. import GlobalStyle from '@polkadot/react-components/styles';
  6. import 'semantic-ui-css/semantic.min.css'
  7. import './style.css'
  8. addDecorator(StoryRouter());
  9. addDecorator(story => (
  10. <div className='StorybookRoot'>
  11. <GlobalStyle />
  12. {story()}
  13. </div>
  14. ));
  15. configure(require.context('../packages', true, /\.stories\.tsx?$/), module)