mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 14:22:33 +01:00
* feat: initial nextjs commit * chore: general card styles changes * chore: add storybook * chore: small changes and fixes * fix: trading filter encoding * fix: add link to node * chore: set to correct version
24 lines
610 B
JavaScript
24 lines
610 B
JavaScript
import { configure, 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);
|
|
|
|
configure(require.context('../src/', true, /\.stories\.tsx?$/), module);
|