blob: 94e9855fa24af71867939349ee57ddea0c48781c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import React from 'react';
import {configure, addDecorator} from '@kadira/storybook';
import {withKnobs} from '@kadira/storybook-addon-knobs';
import { setOptions } from '@kadira/storybook-addon-options';
import './storybook.scss';
import '../resources/scss/onboarding.scss';
const req = require.context('../src', true, /.stories.js$/)
const namespaceDecorator = (story) => (
<div className='dox-ui'>
{story()}
</div>
);
addDecorator(namespaceDecorator);
setOptions({
name: 'custom',
downPanelInRight: true
});
function loadStories() {
req.keys().forEach((filename) => req(filename))
}
configure(loadStories, module);
|