File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 11'use client' ; 
22import  {  useTheme  }  from  'next-themes' ; 
3- import  {  useEffect ,  useState ,  useId ,   useRef  }  from  'react' ; 
3+ import  {  useEffect ,  useState ,  useRef  }  from  'react' ; 
44
55export  default  function  Mermaid ( {  chart } : {  chart : string  } )  { 
6-   const  id  =  useId ( ) ; 
76  const  [ isClient ,  setIsClient ]  =  useState ( false ) ; 
87  const  {  resolvedTheme }  =  useTheme ( ) ; 
98  const  [ error ,  setError ]  =  useState < string  |  null > ( null ) ; 
@@ -111,7 +110,7 @@ export default function Mermaid({ chart }: { chart: string }) {
111110        } ; 
112111
113112        // initialize mermaid 
114-         mermaid . initialize ( themeConfig ) ; 
113+         mermaid . initialize ( themeConfig   as   Record < string ,   unknown > ) ; 
115114
116115        // clear the container 
117116        if  ( containerRef . current )  { 
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ export default function Aurora(props: AuroraProps) {
142142    gl . blendFunc ( gl . ONE ,  gl . ONE_MINUS_SRC_ALPHA ) ; 
143143    gl . canvas . style . backgroundColor  =  "transparent" ; 
144144
145-     let  program : Program  |  undefined ; 
145+     let  program : Program  |  undefined   =   undefined ; 
146146
147147    function  resize ( )  { 
148148      if  ( ! ctn )  return ; 
@@ -208,7 +208,7 @@ export default function Aurora(props: AuroraProps) {
208208      } 
209209      gl . getExtension ( "WEBGL_lose_context" ) ?. loseContext ( ) ; 
210210    } ; 
211-   } ,  [ amplitude ] ) ; 
211+   } ,  [ amplitude ,   blend ,   colorStops ] ) ; 
212212
213213  return  < div  ref = { ctnDom }  className = "w-full h-full"  /> ; 
214214} 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments