fix select city

This commit is contained in:
priyanshuvish
2025-10-17 18:50:54 +05:30
parent 2357e971cb
commit 8abd56fe4e
2 changed files with 32 additions and 33 deletions

View File

@@ -377,7 +377,6 @@ export default function Navbar({
isOpen={activeCityDropdown}
onToggle={() => {
console.log('City dropdown toggled');
// Add a small delay to prevent rapid state changes
setTimeout(() => {
setActiveCityDropdown(!activeCityDropdown);
}, 50);
@@ -394,7 +393,7 @@ export default function Navbar({
trigger={
<div className="flex items-center space-x-1.5 text-gray-700 hover:text-gray-900 text-base font-medium transition-colors duration-200 cursor-pointer rounded-lg hover:bg-gray-50/50 px-2 py-1">
<span>
{isLandingPage
{isLandingPage || activeCity === 'Landingpage' || !activeCity
? 'Select City'
: activeCity.charAt(0).toUpperCase() + activeCity.slice(1)
}

View File

@@ -22,7 +22,7 @@ const ComingSoonPage: React.FC<ComingSoonPageProps> = ({
return (
<Layout
activeCity="Melbourne"
activeCity="Landingpage"
onSignInClick={onSignInClick}
onSignOutClick={onSignOutClick}
user={user}