insomnia/packages/insomnia-components/.storybook/preview.js

10 lines
380 B
JavaScript
Raw Normal View History

2020-04-26 20:33:39 +00:00
import { configure, addDecorator } from '@storybook/react';
import { withContexts } from '@storybook/addon-contexts/react';
import { contexts } from './configs/contexts';
import { withInfo } from '@storybook/addon-info';
addDecorator(withContexts(contexts));
addDecorator(withInfo({ inline: true }));
configure(require.context('../components', true, /\.stories\.js$/), module);