From 8ee5d7c55cbc45d289a8bf06701de46467432df1 Mon Sep 17 00:00:00 2001 From: shreyaanchhabra Date: Sun, 10 May 2026 02:15:43 -0700 Subject: [PATCH] Made all changes --- components/Navbar.tsx | 2 ++ components/admin/AdminLayout.tsx | 4 ++++ components/layout/PublicLayout.tsx | 6 +----- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 6fbec8c..4f5dc5c 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -13,6 +13,7 @@ export default function Navbar() { if (p === "/" || p === "") return "home"; if (p.startsWith("/about")) return "about"; if (p.startsWith("/events")) return "events"; + if (p.startsWith("/gallery")) return "gallery"; if (p.startsWith("/apply")) return "apply"; return "home"; }, [pathname]); @@ -21,6 +22,7 @@ export default function Navbar() { { id: "home", label: "HOME", href: "/" }, { id: "about", label: "ABOUT", href: "/about" }, { id: "events", label: "EVENTS", href: "/events" }, + { id: "gallery", label: "GALLERY", href: "/gallery" }, { id: "apply", label: "APPLY", href: "/apply" }, ]; diff --git a/components/admin/AdminLayout.tsx b/components/admin/AdminLayout.tsx index 08b05e6..5a79e67 100644 --- a/components/admin/AdminLayout.tsx +++ b/components/admin/AdminLayout.tsx @@ -17,6 +17,10 @@ export default function AdminLayout({ }) { const pathname = usePathname(); + if (pathname === "/admin/login") { + return <>{children}; + } + return (