Commit 8c6682bd authored by johnnyjoy's avatar johnnyjoy

chore: regenerate apidocs

parent d13bb764
This diff is collapsed.
import { useColorScheme } from "@mui/joy";
import mermaid from "mermaid"; import mermaid from "mermaid";
import { useEffect, useRef } from "react"; import { useEffect, useRef } from "react";
...@@ -7,9 +6,8 @@ interface Props { ...@@ -7,9 +6,8 @@ interface Props {
} }
const MermaidBlock: React.FC<Props> = ({ content }: Props) => { const MermaidBlock: React.FC<Props> = ({ content }: Props) => {
const { mode } = useColorScheme();
const mermaidDockBlock = useRef<null>(null); const mermaidDockBlock = useRef<null>(null);
mermaid.initialize({ startOnLoad: false, theme: mode }); mermaid.initialize({ startOnLoad: false, theme: "default" });
useEffect(() => { useEffect(() => {
if (!mermaidDockBlock.current) { if (!mermaidDockBlock.current) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment