blob: 94e9855fa24af71867939349ee57ddea0c48781c [file] [log] [blame]
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);