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) => (
{story()}
); addDecorator(namespaceDecorator); setOptions({ name: 'custom', downPanelInRight: true }); function loadStories() { req.keys().forEach((filename) => req(filename)) } configure(loadStories, module);