From 465a8bacf4a3edd126baadb737ac75daabb1a808 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Fri, 20 Feb 2026 04:20:52 -0500 Subject: [PATCH] refactor: add color property to newArea state and include it in area creation --- client/src/components/MiningAreasPanel.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/components/MiningAreasPanel.jsx b/client/src/components/MiningAreasPanel.jsx index f748bfd..8c2c9b3 100644 --- a/client/src/components/MiningAreasPanel.jsx +++ b/client/src/components/MiningAreasPanel.jsx @@ -6,6 +6,7 @@ export default function MiningAreasPanel({ turtles, selectedTurtle, apiUrl }) { const [showCreateForm, setShowCreateForm] = useState(false); const [newArea, setNewArea] = useState({ areaName: '', + color: '#4a8c2a', startX: '', startY: '', startZ: '', @@ -66,6 +67,7 @@ export default function MiningAreasPanel({ turtles, selectedTurtle, apiUrl }) { endX: Number(newArea.endX), endY: Number(newArea.endY), endZ: Number(newArea.endZ), + color: newArea.color, status: 'planned' }) });