feat(admin) : add utility
This commit is contained in:
@@ -63,11 +63,12 @@ export function AdminShell({
|
||||
|
||||
return (
|
||||
<SidebarProvider>
|
||||
<div className="flex w-full min-h-screen bg-background text-foreground">
|
||||
<div className="flex w-full min-h-screen text-foreground">
|
||||
<Sidebar variant="sidebar" collapsible="icon">
|
||||
<SidebarHeader className="border-b border-border py-4 px-4">
|
||||
<Link href="/admin">
|
||||
<div className="flex flex-row items-center justify-between">
|
||||
<span className="font-bold text-primary text-lg">Admin</span>
|
||||
<span className="font-bold text-primary text-lg bg-linear-to-r from-fuchsia-600 via-violet-500 to-fuchsia-400">Admin</span>
|
||||
<div className="flex items-center gap-1">
|
||||
{(userName || profile) && (
|
||||
<DropdownMenuAvatar
|
||||
@@ -80,11 +81,11 @@ export function AdminShell({
|
||||
<ThemeToggle />
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
</SidebarHeader>
|
||||
|
||||
<SidebarContent>
|
||||
<SidebarGroup>
|
||||
<SidebarGroupLabel>Navigation</SidebarGroupLabel>
|
||||
<SidebarGroupContent>
|
||||
<SidebarMenu>
|
||||
{NAV_ITEMS.map(({ href, label, icon: Icon, isActive }) => (
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "PORT=4000 bun --bun next dev",
|
||||
"dev": "PORT=4000 bun --bun next dev --turbopack",
|
||||
"build": "next build",
|
||||
"start": "next start -H 0.0.0.0",
|
||||
"lint": "eslint",
|
||||
|
||||
Reference in New Issue
Block a user