mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
refactor: import CodeEditor directly instead of using dynamic import
This commit is contained in:
parent
d7a019c711
commit
31491c496e
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user