dashboard ui

This commit is contained in:
Ishaan Dey
2024-04-16 16:25:21 -04:00
parent bb05dad34e
commit 8a64c69452
8 changed files with 201 additions and 41 deletions

19
app/dashboard/page.tsx Normal file
View File

@ -0,0 +1,19 @@
import { UserButton, currentUser } from "@clerk/nextjs"
import { redirect } from "next/navigation"
import Dashboard from "@/components/dashboard"
import Navbar from "@/components/dashboard/navbar"
export default async function DashboardPage() {
const user = await currentUser()
if (!user) {
redirect("/")
}
return (
<div className="w-screen h-screen flex flex-col overflow-hidden overscroll-none">
<Navbar />
<Dashboard />
</div>
)
}