From 0a39b39934786af10df783b049c36848ba91125d Mon Sep 17 00:00:00 2001 From: priyanshuvish Date: Fri, 17 Oct 2025 18:54:36 +0530 Subject: [PATCH] fix --- src/components/Navbar.tsx | 60 +++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 387f9c2..5376c6a 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -373,35 +373,35 @@ export default function Navbar({ {/* City Dropdown */} { - console.log('City dropdown toggled'); - setTimeout(() => { - setActiveCityDropdown(!activeCityDropdown); - }, 50); - }} - items={cities.map(city => ({ - id: 'city-change', - label: city.label, - action: () => { - console.log('City action called:', city.id); - handleCityChange(city.id); - } - }))} - title="Select City" - trigger={ -
- - {isLandingPage || activeCity === 'Landingpage' || !activeCity - ? 'Select City' - : activeCity.charAt(0).toUpperCase() + activeCity.slice(1) - } - - -
- } -/> + ref={cityRef} + isOpen={activeCityDropdown} + onToggle={() => { + console.log('City dropdown toggled'); + setTimeout(() => { + setActiveCityDropdown(!activeCityDropdown); + }, 50); + }} + items={cities.map(city => ({ + id: 'city-change', + label: city.label, + action: () => { + console.log('City action called:', city.id); + handleCityChange(city.id); + } + }))} + title="Select City" + trigger={ +
+ + {isLandingPage || activeCity === 'Landingpage' || !activeCity + ? 'Select City' + : activeCity.charAt(0).toUpperCase() + activeCity.slice(1) + } + + +
+ } + /> {/* Language Dropdown */} {/* City Card Button */} -
+