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 60
60
},
61
61
"peerDependencies" : {
62
62
"react" : " >=17.0.1" ,
63
- "react-dom" : " >=17.0.1"
63
+ "react-dom" : " >=17.0.1"
64
64
},
65
65
"devDependencies" : {
66
66
"@babel/cli" : " ^7.0.0" ,
69
69
"@babel/plugin-proposal-export-default-from" : " ^7.0.0" ,
70
70
"@babel/preset-env" : " ^7.0.0" ,
71
71
"@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 " ,
77
77
"@types/jest" : " ^24.0.11" ,
78
78
"@types/react" : " ^17.0.1" ,
79
79
"babel-core" : " ^7.0.0-bridge.0" ,
You can’t perform that action at this time.
0 commit comments