Revert "feat: set mermaid theme based on computed color scheme (#1397)" (#1412)

This reverts commit 32c7ecd9cf.
This commit is contained in:
Philip Okugbe
2025-07-26 01:34:15 +01:00
committed by GitHub
parent 37b9056070
commit 1f815880a4

View File

@ -4,14 +4,10 @@ import mermaid from "mermaid";
import { v4 as uuidv4 } from "uuid";
import classes from "./code-block.module.css";
import { useTranslation } from "react-i18next";
import { useComputedColorScheme } from "@mantine/core";
const computedColorScheme = useComputedColorScheme();
mermaid.initialize({
startOnLoad: false,
suppressErrorRendering: true,
theme: computedColorScheme === "light" ? "default" : "dark",
});
interface MermaidViewProps {