mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-23 14:40:27 +01:00
23 lines
561 B
JavaScript
23 lines
561 B
JavaScript
|
import { addDecorator, addParameters } from '@storybook/react';
|
||
|
import themeDecorator from './themeDecorator';
|
||
|
import { withKnobs } from '@storybook/addon-knobs';
|
||
|
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
|
||
|
|
||
|
const customViewports = {
|
||
|
smallScreen: {
|
||
|
name: 'Small Screen',
|
||
|
styles: {
|
||
|
width: '578px',
|
||
|
height: '100%',
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
|
||
|
addParameters({
|
||
|
viewport: {
|
||
|
viewports: { ...INITIAL_VIEWPORTS, ...customViewports },
|
||
|
},
|
||
|
});
|
||
|
addDecorator(themeDecorator);
|
||
|
addDecorator(withKnobs);
|