mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 17:46:56 +03:00
10bf7bc084
* chore(*): upgrade prettier * chore(*): upgrade prettier
31 lines
834 B
JavaScript
Executable File
31 lines
834 B
JavaScript
Executable File
import { configure, setAddon, addDecorator } from '@storybook/react';
|
|
import { withOptions } from '@storybook/addon-options';
|
|
import { withInfo } from '@storybook/addon-info';
|
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
import { withTheme } from './themeAddon/theme';
|
|
import '../src/presets.js';
|
|
|
|
addDecorator(
|
|
withOptions({
|
|
name: 'DevUI',
|
|
url: 'https://github.com/reduxjs/redux-devtools/tree/master/packages/devui',
|
|
goFullScreen: false,
|
|
showStoriesPanel: true,
|
|
showAddonPanel: true,
|
|
showSearchBox: false,
|
|
addonPanelInRight: true,
|
|
})
|
|
);
|
|
|
|
addDecorator(withTheme);
|
|
addDecorator(withKnobs);
|
|
addDecorator(withInfo);
|
|
|
|
const req = require.context('../src/', true, /stories\/index\.js$/);
|
|
|
|
function loadStories() {
|
|
req.keys().forEach((filename) => req(filename));
|
|
}
|
|
|
|
configure(loadStories, module);
|