feat(admin) : add utility

This commit is contained in:
2026-07-08 20:04:41 +07:00 Unverified
parent 7dad7ab553
commit 4317853aca
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -63,11 +63,12 @@ export function AdminShell({
return ( return (
<SidebarProvider> <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"> <Sidebar variant="sidebar" collapsible="icon">
<SidebarHeader className="border-b border-border py-4 px-4"> <SidebarHeader className="border-b border-border py-4 px-4">
<Link href="/admin">
<div className="flex flex-row items-center justify-between"> <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"> <div className="flex items-center gap-1">
{(userName || profile) && ( {(userName || profile) && (
<DropdownMenuAvatar <DropdownMenuAvatar
@@ -80,11 +81,11 @@ export function AdminShell({
<ThemeToggle /> <ThemeToggle />
</div> </div>
</div> </div>
</Link>
</SidebarHeader> </SidebarHeader>
<SidebarContent> <SidebarContent>
<SidebarGroup> <SidebarGroup>
<SidebarGroupLabel>Navigation</SidebarGroupLabel>
<SidebarGroupContent> <SidebarGroupContent>
<SidebarMenu> <SidebarMenu>
{NAV_ITEMS.map(({ href, label, icon: Icon, isActive }) => ( {NAV_ITEMS.map(({ href, label, icon: Icon, isActive }) => (
+1 -1
View File
@@ -3,7 +3,7 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "PORT=4000 bun --bun next dev", "dev": "PORT=4000 bun --bun next dev --turbopack",
"build": "next build", "build": "next build",
"start": "next start -H 0.0.0.0", "start": "next start -H 0.0.0.0",
"lint": "eslint", "lint": "eslint",