File tree Expand file tree Collapse file tree 3 files changed +18
-30
lines changed Expand file tree Collapse file tree 3 files changed +18
-30
lines changed Original file line number Diff line number Diff line change 1- const path = require ( ' path' )
1+ const path = require ( " path" )
22
33module . exports = {
4- "stories" : [
5- "../site/**/*.stories.mdx" ,
6- "../site/**/*.stories.@(js|jsx|ts|tsx)"
7- ] ,
8- "addons" : [
9- "@storybook/addon-links" ,
10- "@storybook/addon-essentials" ,
11- ] ,
12- babel : async ( options ) => ( {
4+ stories : [ "../site/**/*.stories.mdx" , "../site/**/*.stories.@(js|jsx|ts|tsx)" ] ,
5+ addons : [ "@storybook/addon-links" , "@storybook/addon-essentials" ] ,
6+ babel : async ( options ) => ( {
137 ...options ,
14- " plugins" : [ "@babel/plugin-proposal-class-properties" ]
8+ plugins : [ "@babel/plugin-proposal-class-properties" ] ,
159 // any extra options you want to set
1610 } ) ,
1711 webpackFinal : async ( config ) => {
18- config . resolve . modules = [
19- path . resolve ( __dirname , ".." ) ,
20- "node_modules" ,
21- ]
12+ config . resolve . modules = [ path . resolve ( __dirname , ".." ) , "node_modules" ]
2213
23- return config ;
24- }
25- }
14+ return config
15+ } ,
16+ }
Original file line number Diff line number Diff line change 11import ThemeProvider from "@material-ui/styles/ThemeProvider"
2- import { withThemes } from ' @react-theming/storybook-addon'
3- import { light , dark } from ' ../site/theme'
4- import { addDecorator } from ' node_modules/@storybook/react'
2+ import { withThemes } from " @react-theming/storybook-addon"
3+ import { light , dark } from " ../site/theme"
4+ import { addDecorator } from " node_modules/@storybook/react"
55
6- addDecorator ( withThemes (
7- ThemeProvider ,
8- [ light , dark ]
9- ) )
6+ addDecorator ( withThemes ( ThemeProvider , [ light , dark ] ) )
107
118export const parameters = {
12- actions : {
9+ actions : {
1310 argTypesRegex : "^on[A-Z].*" ,
1411 argTypesRegex : "^handle[A-Z].*" ,
15- } ,
12+ } ,
1613 controls : {
1714 expanded : true ,
1815 matchers : {
1916 color : / ( b a c k g r o u n d | c o l o r ) $ / i,
2017 date : / D a t e $ / ,
2118 } ,
2219 } ,
23- }
20+ }
Original file line number Diff line number Diff line change @@ -22,5 +22,5 @@ Loading.args = {
2222export const NotLoading = Template . bind ( { } )
2323NotLoading . args = {
2424 variant : "contained" ,
25- loading : false
26- }
25+ loading : false ,
26+ }
You can’t perform that action at this time.
0 commit comments