Skip to content

Commit

Permalink
remove plot button from drawing tools
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinElms committed Jan 13, 2025
1 parent 1e5008e commit 2e06294
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions oceannavigator/frontend/src/components/DrawingTools.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ function DrawingTools(props) {
props.action("stopDrawing");
};

const handlePlot = () => {
props.action("selectPoints");
props.updateUI({ modalType: vectorType, showModal: true });
};

const plotDisabled =
(props.vectorType === "point" && props.vectorCoordinates.length < 1) ||
(props.vectorType === "line" && props.vectorCoordinates.length < 2) ||
(props.vectorType === "area" && props.vectorCoordinates.length < 3);

return (
<div className={"drawing-tools"}>
<div>
Expand All @@ -66,14 +56,6 @@ function DrawingTools(props) {
</ToggleButton>
))}
</div>

<Button
className="plot-button"
onClick={handlePlot}
disabled={plotDisabled}
>
{__("Plot")}
</Button>
<Button className="plot-button" onClick={handleClear}>
{__("Clear")}
</Button>
Expand Down

0 comments on commit 2e06294

Please sign in to comment.