Skip to content

Commit

Permalink
Fix geometry color of sensitiveAreas
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Nov 19, 2024
1 parent c00487d commit 4a65b83
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions frontend/src/components/Map/DetailsMap/SensitiveAreas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ export const SensitiveAreas: React.FC<PropsType> = ({ contents }) => {
return null;
}

return (
<>
{polygons.map(({ positions, color }, i) => {
return <Polygon color={color} key={`sensitiveArea${i}`} positions={positions} weight={3} />;
})}
</>
);
return polygons.map(({ positions, color }) => (
<Polygon
className={`bg-${color}`}
color="currentColor"
key={color}
positions={positions}
weight={3}
/>
));
};

0 comments on commit 4a65b83

Please sign in to comment.