accounts-frontend/.storybook/config.tsx
2019-12-09 09:47:51 +02:00

14 lines
325 B
TypeScript

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);