fix select city
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ const ComingSoonPage: React.FC<ComingSoonPageProps> = ({
|
||||
|
||||
return (
|
||||
<Layout
|
||||
activeCity="Melbourne"
|
||||
activeCity="Landingpage"
|
||||
onSignInClick={onSignInClick}
|
||||
onSignOutClick={onSignOutClick}
|
||||
user={user}
|
||||
|
||||
Reference in New Issue
Block a user