refactor: import CodeEditor directly instead of using dynamic import

This commit is contained in:
cfngc4594 2025-02-20 11:27:07 +08:00
parent d7a019c711
commit 31491c496e

View File

@ -1,11 +1,6 @@
import dynamic from "next/dynamic";
import { Skeleton } from "@/components/ui/skeleton";
import CodeEditor from "@/components/code-editor";
import { ModeToggle } from "@/components/mode-toggle";
const CodeEditor = dynamic(() => import("@/components/code-editor"), {
loading: () => <Skeleton className="h-full w-full" />,
});
export default function Home() {
return (
<div className="h-screen flex flex-col">