Skip to content

Commit

Permalink
Remove Sidebar from DataTool's map container - handled in the compone…
Browse files Browse the repository at this point in the history
…nt above it
  • Loading branch information
SARodrigues committed Nov 10, 2023
1 parent 87b2452 commit c2b56c5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions frontend/src/containers/data-tool/content/map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { useQueryClient } from '@tanstack/react-query';
import { useAtomValue, useSetAtom } from 'jotai';

import Map, { ZoomControls, Attributions, DrawControls, Drawing } from '@/components/map';
import SidebarContent from '@/components/sidebar-content';
// import Popup from '@/containers/map/popup';
import LabelsManager from '@/containers/data-tool/content/map/labels-manager';
import LayersToolbox from '@/containers/data-tool/content/map/layers-toolbox';
Expand Down Expand Up @@ -163,9 +162,8 @@ const DataToolMap: React.FC = () => {
}, [queryClient, locationCode, isSidebarOpen, map]);

return (
<div className="absolute left-0 flex h-full w-full flex-col md:flex-row">
<div className="absolute left-0 h-full w-full">
<Map
className="absolute left-0 w-full"
initialViewState={{
bounds,
fitBoundsOptions: {
Expand Down Expand Up @@ -202,9 +200,6 @@ const DataToolMap: React.FC = () => {
<Attributions />
</>
</Map>
<div className="h-1/2 flex-shrink-0 bg-white p-6 pb-3 md:hidden">
<SidebarContent />
</div>
</div>
);
};
Expand Down

0 comments on commit c2b56c5

Please sign in to comment.