Keine Beschreibung

config.js 724B

1234567891011121314151617181920212223
  1. import { configure, getStorybook } from '@storybook/react';
  2. import { addParameters } from '@storybook/react';
  3. import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
  4. import { addDecorator } from '@storybook/react';
  5. import { withConsole } from '@storybook/addon-console';
  6. import bilingoTheme from './bilingoTheme';
  7. addParameters({
  8. info: { inline: true },
  9. viewport: {
  10. viewports: INITIAL_VIEWPORTS,
  11. defaultViewport: 'someDefault',
  12. },
  13. options: { theme: bilingoTheme },
  14. });
  15. // automatically import all files ending in *.stories.tsx
  16. configure(
  17. require.context('../stories', true, /\.stories\.tsx?$/), module
  18. )
  19. addDecorator((storyFn, context) => withConsole()(storyFn)(context));
  20. export { getStorybook }