Skip to content
Snippets Groups Projects
Commit c5b84b9b authored by pjookim's avatar pjookim
Browse files

fix: conditonally display MapSearch bar based on trip state

parent fef78dea
No related branches found
No related tags found
No related merge requests found
......@@ -504,13 +504,14 @@ const Home = () => {
)}
</div>
<div className={`map-container ${showNewTrip ? 'hidden' : ''}`}>
{!showNewTrip && !showDirection && !selectedPlace && (
<MapSearch
onPlaceSelect={handlePlaceSelect}
map={map}
onSearchResult={handleSearchResult}
clearMap={clearMap}
markers={markers}
setMarkers={setMarkers}
trips={trips}
/>
)}
<Map
latitude={selectedLocation.latitude}
longitude={selectedLocation.longitude}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment