mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 15:26:33 +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 CodeEditor from "@/components/code-editor";
|
||||||
import { Skeleton } from "@/components/ui/skeleton";
|
|
||||||
import { ModeToggle } from "@/components/mode-toggle";
|
import { ModeToggle } from "@/components/mode-toggle";
|
||||||
|
|
||||||
const CodeEditor = dynamic(() => import("@/components/code-editor"), {
|
|
||||||
loading: () => <Skeleton className="h-full w-full" />,
|
|
||||||
});
|
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<div className="h-screen flex flex-col">
|
<div className="h-screen flex flex-col">
|
||||||
|
Loading…
Reference in New Issue
Block a user