File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -84,24 +84,17 @@ const viewPorts = Object.entries({
8484 ...breakpoints ,
8585 'breakpoints-xs' : '20rem' , // Replace the 0px xs breakpoint with 320px (20rem) for testing small screens
8686} ) . map ( ( [ key , value ] ) => {
87- const name = kebabToCamelCase ( key ) ;
8887 return {
89- name,
88+ name : key ,
9089 styles : { width : value , height : '100%' } ,
9190 } ;
9291} ) ;
9392
94- export const parameters = {
95- viewport : { viewports : { ...viewPorts } } ,
96- } ;
93+ export const parameters = { viewport : { viewports : { ...viewPorts } } } ;
9794
9895export const decorators = [
9996 GridOverlayDecorator ,
10097 StrictModeDecorator ,
10198 AppProviderDecorator ,
10299 ReactRenderProfiler ,
103100] ;
104-
105- function kebabToCamelCase ( value : string ) {
106- return value . replace ( / - ./ g, ( stringGroups ) => stringGroups [ 1 ] . toUpperCase ( ) ) ;
107- }
You can’t perform that action at this time.
0 commit comments