File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 11import  {  DARK ,  LIGHT  }  from  "../../constants" ; 
22import  {  ColorSchemePreference ,  ResolvedScheme ,  useStore  }  from  "../../utils" ; 
3- import  {    useEffect  }  from  "react" ; 
3+ import  {  useEffect  }  from  "react" ; 
44import  {  noFOUCScript  }  from  "./no-fouc" ; 
55
66let  media : MediaQueryList , 
@@ -14,14 +14,13 @@ interface ScriptProps {
1414} 
1515
1616/** Avoid rerender of script */ 
17- const  Script  =  
18-   ( {  n,  k } : ScriptProps )  =>  ( 
19-     < script 
20-       suppressHydrationWarning 
21-       // skipcq: JS-0440 
22-       dangerouslySetInnerHTML = { {  __html : `(${ noFOUCScript . toString ( ) }  )('${ k }  ')`  } } 
23-       nonce = { n } 
24-     /> 
17+ const  Script  =  ( {  n,  k } : ScriptProps )  =>  ( 
18+   < script 
19+     suppressHydrationWarning 
20+     // skipcq: JS-0440 
21+     dangerouslySetInnerHTML = { {  __html : `(${ noFOUCScript . toString ( ) }  )('${ k }  ')`  } } 
22+     nonce = { n } 
23+   /> 
2524) ; 
2625
2726export  interface  CoreProps  { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments