From 734044d73b75cc705cd7a488645b128185588b1a Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Fri, 22 Aug 2025 16:37:02 +0200 Subject: [PATCH] refactor: style of tabs admin --- components/admin/utils/admin-header.tsx | 54 ++++++++++++++++--------- 1 file changed, 36 insertions(+), 18 deletions(-) diff --git a/components/admin/utils/admin-header.tsx b/components/admin/utils/admin-header.tsx index 0358c49..082c3cc 100644 --- a/components/admin/utils/admin-header.tsx +++ b/components/admin/utils/admin-header.tsx @@ -2,9 +2,15 @@ import { Building2, Settings } from "lucide-react"; import Link from "next/link"; +import { usePathname } from "next/navigation"; import { Button } from "@/components/ui/button"; export function AdminHeader() { + const pathname = usePathname(); + + const isOverviewActive = pathname === "/admin"; + const isManageActive = pathname === "/admin/manage"; + return (
@@ -22,24 +28,36 @@ export function AdminHeader() {

- - - - - - +
+
+ + + + + + +
+
);