File tree Expand file tree Collapse file tree
.storybook/custom-addons/provider Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ const preview = {
2727 return ( ) => channel . removeListener ( DARK_MODE_EVENT_NAME , setDark ) ;
2828 } , [ ] ) ;
2929 var style = getComputedStyle ( document . body )
30- console . log ( 'got here' ) ;
3130 return < DocsContainer { ...props } theme = { { ...( dark ? themes . dark : themes . light ) , appContentBg : style . getPropertyValue ( '--s2-container-bg' ) . trim ( ) } } /> ;
3231 } ,
3332 codePanel : true ,
@@ -45,7 +44,6 @@ const preview = {
4544 }
4645 } ,
4746 page : ( ) => {
48- console . log ( 'got here 2' ) ;
4947 return (
5048 < >
5149 < Title />
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ function ProviderUpdater(props) {
2424 useEffect ( ( ) => {
2525 let channel = addons . getChannel ( ) ;
2626 let providerUpdate = ( event ) => {
27- console . log ( 'providerUpdate' , event ) ;
2827 setLocale ( event . locale ) ;
2928 setTheme ( event . theme === 'Auto' ? undefined : event . theme ) ;
3029 setScale ( event . scale === 'Auto' ? undefined : event . scale ) ;
@@ -40,7 +39,6 @@ function ProviderUpdater(props) {
4039 } , [ ] ) ;
4140
4241 if ( props . options . mainElement == null ) {
43- console . log ( 'mainElement is null' , storyReady ) ;
4442 return (
4543 < Provider theme = { theme } colorScheme = { colorScheme } scale = { scaleValue } locale = { localeValue } >
4644 < main >
@@ -49,7 +47,6 @@ function ProviderUpdater(props) {
4947 </ Provider >
5048 ) ;
5149 } else {
52- console . log ( 'mainElement is not null' ) ;
5350 return (
5451 < Provider theme = { theme } colorScheme = { colorScheme } scale = { scaleValue } locale = { localeValue } >
5552 { storyReady && props . children }
Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ function ProviderFieldSetter({api}) {
7575 } ;
7676 useEffect ( ( ) => {
7777 let storySwapped = ( ) => {
78- console . log ( 'storySwapped' , values ) ;
7978 channel . emit ( 'provider/updated' , values ) ;
8079 } ;
8180 channel . on ( 'rsp/ready-for-update' , storySwapped ) ;
@@ -122,7 +121,6 @@ function ProviderFieldSetter({api}) {
122121}
123122
124123addons . register ( 'ProviderSwitcher' , ( api ) => {
125- console . log ( 'ProviderSwitcher registering' ) ;
126124 addons . add ( 'ProviderSwitcher' , {
127125 title : 'viewport' ,
128126 type : types . TOOL ,
You can’t perform that action at this time.
0 commit comments