diff --git a/components/Navbar.tsx b/components/Navbar.tsx
index 671db62..4e430f1 100644
--- a/components/Navbar.tsx
+++ b/components/Navbar.tsx
@@ -23,7 +23,9 @@ export function Navbar() {
const router = useRouter();
const pathname = usePathname();
const isUserDashboard = pathname?.startsWith("/user/dashboard");
+ const isAdminDashboard = pathname?.startsWith("/admin/dashboard");
const isUserSettings = pathname?.startsWith("/user/settings");
+ const isAdminSettings = pathname?.startsWith("/admin/settings");
const isUserRoute = pathname?.startsWith("/user/");
const { isAuthenticated, logout, user, isAdmin } = useAuth();
@@ -140,13 +142,15 @@ export function Navbar() {
)}
{isAuthenticated && (
<>
-
-
- Dashboard
-
+ {!(isUserDashboard || isAdminDashboard || isUserSettings || isAdminSettings) && (
+
+
+ Dashboard
+
+ )}