feat: add theme toggle to admin sidebars and update form list to use full-row navigation links

This commit is contained in:
2026-07-03 17:55:33 +07:00 Unverified
parent 8c7c183d14
commit f5544e328d
4 changed files with 28 additions and 19 deletions
+3 -1
View File
@@ -17,6 +17,7 @@ import {
SidebarTrigger,
} from "@/components/ui/sidebar";
import { ClipboardList, Server, LayoutDashboard } from "lucide-react";
import { ThemeToggle } from "@/components/theme-toggle";
export function AdminShell({ children }: { children: React.ReactNode }) {
const pathname = usePathname();
@@ -25,10 +26,11 @@ export function AdminShell({ children }: { children: React.ReactNode }) {
<SidebarProvider>
<div className="flex w-full min-h-screen bg-background text-foreground">
<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 flex flex-row items-center justify-between">
<span className="font-bold tracking-wider text-primary text-sm uppercase">
Admin
</span>
<ThemeToggle />
</SidebarHeader>
<SidebarContent>