status-tutorials/.storybook/preview.js

22 lines
685 B
JavaScript
Raw Permalink Normal View History

2020-04-18 17:02:31 +00:00
// #region Global Imports
import { addDecorator, addParameters } from "@storybook/react";
import { withThemesProvider } from "storybook-addon-styled-component-theme";
import { withKnobs } from "@storybook/addon-knobs";
import { INITIAL_VIEWPORTS } from "@storybook/addon-viewport";
// #endregion Global Imports
// #region Local Imports
import {theme} from "@Definitions/Styled"
import {withRedux, withI18next} from "./Decorators"
// #endregion Local Imports
addDecorator(withThemesProvider([{name: "light", ...theme}]));
addDecorator(withKnobs);
addDecorator(withRedux());
addDecorator(withI18next());
addParameters({
viewport: {
viewports: INITIAL_VIEWPORTS,
},
});