accounts-frontend/.storybook/config.tsx

14 lines
325 B
TypeScript
Raw Normal View History

2019-12-09 13:17:51 +05:30
import { configure, addDecorator } from '@storybook/react';
import storyDecorator from './storyDecorator';
const req = require.context('../packages/app', true, /\.story\.[tj]sx?$/);
function loadStories() {
req.keys().forEach(filename => req(filename));
}
addDecorator(storyDecorator);
configure(loadStories, module);