File tree Expand file tree Collapse file tree 5 files changed +2955
-3052
lines changed Expand file tree Collapse file tree 5 files changed +2955
-3052
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ stories : [ '../stories/**/*.stories.js' ] ,
3+ } ;
Original file line number Diff line number Diff line change 1+ import { withKnobs } from '@storybook/addon-knobs' ;
2+
3+ // reset the window on each story
4+ const withWindowReset = ( storyFn ) => {
5+ window . scrollTo ( 0 , 0 ) ;
6+ return storyFn ( ) ;
7+ } ;
8+
9+ export const decorators = [ withKnobs , withWindowReset ] ;
Original file line number Diff line number Diff line change 6060 },
6161 "peerDependencies" : {
6262 "react" : " >=17.0.1" ,
63- "react-dom" : " >=17.0.1"
63+ "react-dom" : " >=17.0.1"
6464 },
6565 "devDependencies" : {
6666 "@babel/cli" : " ^7.0.0" ,
6969 "@babel/plugin-proposal-export-default-from" : " ^7.0.0" ,
7070 "@babel/preset-env" : " ^7.0.0" ,
7171 "@babel/preset-react" : " ^7.0.0" ,
72- "@storybook/addon-actions" : " ^5.0.6 " ,
73- "@storybook/addon-knobs" : " ^5.0.6 " ,
74- "@storybook/addon-links" : " ^5.0.6 " ,
75- "@storybook/addons" : " ^5.0.6 " ,
76- "@storybook/react" : " ^5.0.6 " ,
72+ "@storybook/addon-actions" : " ^6.2.9 " ,
73+ "@storybook/addon-knobs" : " ^6.2.9 " ,
74+ "@storybook/addon-links" : " ^6.2.9 " ,
75+ "@storybook/addons" : " ^6.2.9 " ,
76+ "@storybook/react" : " ^6.2.9 " ,
7777 "@types/jest" : " ^24.0.11" ,
7878 "@types/react" : " ^17.0.1" ,
7979 "babel-core" : " ^7.0.0-bridge.0" ,
You can’t perform that action at this time.
0 commit comments