style changes

This commit is contained in:
Ishaan Dey
2024-04-11 03:34:58 -04:00
parent 0d42bc6734
commit 135b8268bf
5 changed files with 33 additions and 21 deletions

View File

@ -1,4 +1,7 @@
"use client"
import Navbar from "@/components/navbar"
import { useClerk } from "@clerk/nextjs"
import dynamic from "next/dynamic"
const CodeEditor = dynamic(() => import("@/components/editor"), {
@ -6,11 +9,13 @@ const CodeEditor = dynamic(() => import("@/components/editor"), {
})
export default function CodePage() {
const clerk = useClerk()
return (
<div className="overflow-hidden overscroll-none w-screen flex flex-col h-screen bg-background">
<Navbar />
<div className="w-screen flex grow">
<CodeEditor />
{clerk.loaded ? <CodeEditor /> : null}
</div>
</div>
)