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