mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-10 01:52:04 +05:30
14 lines
325 B
TypeScript
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);
|