From 3da7d9993497aed2f6a2e44e0315519a5467b714 Mon Sep 17 00:00:00 2001 From: iamkiddy Date: Thu, 4 Dec 2025 18:26:21 +0000 Subject: [PATCH] Update Navbar component to adjust link behavior based on user authentication and role. Change the home link to redirect authenticated non-admin users to the dashboard, and modify conditional rendering to hide the "book now" link for admin users, enhancing navigation clarity. --- components/Navbar.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/components/Navbar.tsx b/components/Navbar.tsx index ef2ccf0..1e56789 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -80,7 +80,10 @@ export function Navbar() { whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }} > - +
@@ -127,7 +130,7 @@ export function Navbar() { )} - {!isUserDashboard && ( + {!isAdmin && ( )} - {!isUserDashboard && ( + {!isAdmin && ( setMobileMenuOpen(false)}