From 1be37e098bb233a9af62516366bdbd2f39908226 Mon Sep 17 00:00:00 2001 From: aryabenade Date: Fri, 24 Apr 2026 22:03:11 +0530 Subject: [PATCH] show login modal when clicked on ctabutton if logged out --- src/components/Navbar.tsx | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index c6972a9..77e2b50 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -94,10 +94,8 @@ export default function Navbar({ const baseUrl = import.meta.env.VITE_BASE_URL; - const protectedPaths = ["/passes", "/whats-included", "/", "/melbourne"]; - const handleOpenLoginModal = () => { - if (!user && protectedPaths.includes(location.pathname)) { + if (!user) { setLoginOpen(true); } else if (!user) { @@ -613,27 +611,7 @@ export default function Navbar({ } /> - {/* Shopping Cart */} - {/* setActiveCartDropdown(prev => !prev)} - items={cartDropdownItems} - title="Shopping Cart" - trigger={ -
- - - {cartItems.length} - -
- } - /> */} - navigate("/cart")} /> + navigate("/cart")} /> {/* Enhanced City Card Button with Source Tracking */}