Skip to content

Commit b45f6fe

Browse files
committed
chore: fix docs build
1 parent c894f17 commit b45f6fe

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

docs/src/components/mdx/mermaid.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
'use client';
22
import { useTheme } from 'next-themes';
3-
import { useEffect, useState, useId, useRef } from 'react';
3+
import { useEffect, useState, useRef } from 'react';
44

55
export 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) {

docs/src/components/ui/aurora.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)