代码优化

This commit is contained in:
xintaofei
2026-03-15 16:20:54 +08:00
parent 838185fe35
commit 9688248200
3 changed files with 3 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ import { useTranslations } from "next-intl"
import { useFolderContext } from "@/contexts/folder-context"
import { defineMonacoThemes, useMonacoThemeSync } from "@/lib/monaco-themes"
import { cn } from "@/lib/utils"
import "@/lib/monaco-local"
type RowMarker = "none" | "added" | "deleted" | "modified"
type DiffFileMode = "modified" | "added" | "deleted" | "renamed"
@@ -71,8 +72,6 @@ interface HunkPreviewLine {
marker: RowMarker
}
import "@/lib/monaco-local"
const MonacoEditor = dynamic(async () => import("@monaco-editor/react"), {
ssr: false,
})