1 | import { configure, addParameters } from '@storybook/react';
|
2 |
|
3 |
|
4 |
|
5 | const loaderFn = () => {
|
6 | const allExports = [require('../src/story/StyleGuide/Welcome/components.stories.js')];
|
7 | const req = require.context('../src/story', true, /\.stories\.js$/);
|
8 | req.keys().forEach(fname => {
|
9 | allExports.push(req(fname)
|
10 | )
|
11 | });
|
12 | return allExports;
|
13 | };
|
14 |
|
15 | configure(loaderFn, module);
|
16 |
|
17 | addParameters({
|
18 | backgrounds: [
|
19 | { name: 'light', value: '#FFFFFF', default: true },
|
20 | { name: 'grey', value: '#f3f3f4' }
|
21 | ]
|
22 | });
|