mirror of
https://github.com/docmost/docmost.git
synced 2025-11-14 18:41:09 +10:00
This reverts commit 32c7ecd9cf.
This commit is contained in:
@ -4,14 +4,10 @@ import mermaid from "mermaid";
|
|||||||
import { v4 as uuidv4 } from "uuid";
|
import { v4 as uuidv4 } from "uuid";
|
||||||
import classes from "./code-block.module.css";
|
import classes from "./code-block.module.css";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { useComputedColorScheme } from "@mantine/core";
|
|
||||||
|
|
||||||
const computedColorScheme = useComputedColorScheme();
|
|
||||||
|
|
||||||
mermaid.initialize({
|
mermaid.initialize({
|
||||||
startOnLoad: false,
|
startOnLoad: false,
|
||||||
suppressErrorRendering: true,
|
suppressErrorRendering: true,
|
||||||
theme: computedColorScheme === "light" ? "default" : "dark",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
interface MermaidViewProps {
|
interface MermaidViewProps {
|
||||||
|
|||||||
Reference in New Issue
Block a user