Skip to content

Commit

Permalink
fix: add missing keys in list
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch committed Jan 21, 2025
1 parent 20add43 commit 9719761
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/components/ToolMenu/Draw/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export const Draw: React.FC<DrawProps> = ({
{showDrawPoint ? (
<DrawButton
value="draw-point"
key="draw-point"
drawType="Point"
type="link"
pressed={false}
Expand All @@ -181,6 +182,7 @@ export const Draw: React.FC<DrawProps> = ({
{showDrawLine ? (
<DrawButton
value="draw-line"
key="draw-line"
drawType="LineString"
type="link"
>
Expand All @@ -198,6 +200,7 @@ export const Draw: React.FC<DrawProps> = ({
{showDrawPolygon ? (
<DrawButton
value="draw-polygon"
key="draw-polygon"
drawType="Polygon"
type="link"
>
Expand All @@ -215,6 +218,7 @@ export const Draw: React.FC<DrawProps> = ({
{showDrawCircle ? (
<DrawButton
value="draw-circle"
key="draw-circle"
drawType="Circle"
type="link"
>
Expand All @@ -232,6 +236,7 @@ export const Draw: React.FC<DrawProps> = ({
{showDrawRectangle ? (
<DrawButton
value="draw-rectangle"
key="draw-rectangle"
drawType="Rectangle"
type="link"
>
Expand All @@ -245,9 +250,11 @@ export const Draw: React.FC<DrawProps> = ({
</span>
</DrawButton>
) : <></>}

{showDrawAnnotation ? (
<DrawButton
value="draw-text"
key="draw-text"
drawType="Text"
type="link"
>
Expand All @@ -261,10 +268,15 @@ export const Draw: React.FC<DrawProps> = ({
</span>
</DrawButton>
) : <></>}
<StylingButton />

<StylingButton
key="styling"
/>

{showModifyFeatures ? (
<ModifyButton
value="draw-modify"
key="draw-modify"
type="link"
onFeatureSelect={onModifyFeatureSelect}
>
Expand All @@ -278,9 +290,11 @@ export const Draw: React.FC<DrawProps> = ({
</span>
</ModifyButton>
) : <></>}

{showDeleteFeatures ? (
<DeleteButton
value="draw-delete"
key="draw-delete"
type="link"
>
<FontAwesomeIcon
Expand Down

0 comments on commit 9719761

Please sign in to comment.