From 1f815880a42f03c0963a3b6ba3862e5dba7eb585 Mon Sep 17 00:00:00 2001 From: Philip Okugbe <16838612+Philipinho@users.noreply.github.com> Date: Sat, 26 Jul 2025 01:34:15 +0100 Subject: [PATCH] Revert "feat: set mermaid theme based on computed color scheme (#1397)" (#1412) This reverts commit 32c7ecd9cfacc4f52dad00536af669097b0cfd93. --- .../features/editor/components/code-block/mermaid-view.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/client/src/features/editor/components/code-block/mermaid-view.tsx b/apps/client/src/features/editor/components/code-block/mermaid-view.tsx index d51e5604..5f2cf845 100644 --- a/apps/client/src/features/editor/components/code-block/mermaid-view.tsx +++ b/apps/client/src/features/editor/components/code-block/mermaid-view.tsx @@ -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 {