Skip to content

Commit

Permalink
removed search bar for map without controls
Browse files Browse the repository at this point in the history
  • Loading branch information
hiba9201 committed Nov 5, 2023
1 parent b153f46 commit 64c371c
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions client/components/Map/MainContainer/MapMainContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,19 @@ function MapMainContainer({ zoom = 16, showControls = true }) {
)}

<MapTransport />

<div
className={cn(
POSITION_CLASSES.topleft,
sidebarStyles.leafletSidebar,
styles.MapSidebar,
)}
>
<MapSearchBar />

{sidebar}
</div>
{showControls && (
<div
className={cn(
POSITION_CLASSES.topleft,
sidebarStyles.leafletSidebar,
styles.MapSidebar,
)}
>
<MapSearchBar />

{sidebar}
</div>
)}
</MapContainer>
);
}
Expand Down

1 comment on commit 64c371c

@ekbdev
Copy link

@ekbdev ekbdev commented on 64c371c Nov 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for transport ready!

✅ Preview
https://transport-rlp21niho-ekbdev.vercel.app
https://ekbdev-transport-feat-map-search.vercel.app

Built with commit 64c371c.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.