accounts-frontend/.storybook/config.tsx

14 lines
329 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() {
2020-05-24 04:38:24 +05:30
req.keys().forEach((filename) => req(filename));
2019-12-09 13:17:51 +05:30
}
addDecorator(storyDecorator);
configure(loadStories, module);