Skip to content

Commit

Permalink
[TM-1535] remove add polygon in polygon review
Browse files Browse the repository at this point in the history
  • Loading branch information
dottyy committed Dec 10, 2024
1 parent 8c22bb1 commit 7d6fbfa
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const Polygons = (props: IPolygonProps) => {
const contextMapArea = useMapAreaContext();
const reloadSiteData = context?.reloadSiteData;
const sitePolygonData = context?.sitePolygonData;
const { setIsUserDrawingEnabled, setSelectedPolygonsInCheckbox, selectedPolygonsInCheckbox } = contextMapArea;
const { setSelectedPolygonsInCheckbox, selectedPolygonsInCheckbox } = contextMapArea;
const [openCollapseAll, setOpenCollapseAll] = useState(false);

useEffect(() => {
Expand Down Expand Up @@ -221,20 +221,15 @@ const Polygons = (props: IPolygonProps) => {
/>
)}
</Drawer>
<div className="mb-4 flex flex-col gap-1">
<div className="mb-4 flex flex-col gap-2">
<Text variant="text-16-bold" className="text-darkCustom">
Polygons
</Text>
<div className="flex items-center justify-between">
<Button variant="text" onClick={() => setIsUserDrawingEnabled?.(true)}>
<Text variant="text-14-semibold" className="flex items-center gap-1">
Add Polygon <Icon name={IconNames.PLUS_CIRCLE} className="h-4 w-4" />
</Text>
</Button>
<div className="flex items-center justify-start">
<Button
variant="white-border"
onClick={() => setOpenCollapseAll(!openCollapseAll)}
className="mb-2 flex gap-1 !rounded-lg !capitalize"
className="mb-2 flex gap-1.5 !rounded-lg !capitalize"
>
{openCollapseAll ? (
<Icon name={IconNames.IC_SHINK} className="mr-1 h-[0.8rem] w-[0.8rem]" />
Expand Down

0 comments on commit 7d6fbfa

Please sign in to comment.