From bca3cb4508012caba72057819e048e39f6588322 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Fri, 20 Feb 2026 03:42:13 -0500 Subject: [PATCH] style: Refactor PathRecorder to utilize individual turtle movement functions --- client/src/components/PathRecorder.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/components/PathRecorder.jsx b/client/src/components/PathRecorder.jsx index da463e4..5100a5f 100644 --- a/client/src/components/PathRecorder.jsx +++ b/client/src/components/PathRecorder.jsx @@ -13,7 +13,10 @@ const PathRecorder = ({ turtles, selectedTurtle, apiUrl }) => { const [loading, setLoading] = useState(false); const [playingBack, setPlayingBack] = useState(false); - const sendCommand = useTurtleStore((state) => state.sendCommand); + const moveForward = useTurtleStore((state) => state.moveForward); + const moveUp = useTurtleStore((state) => state.moveUp); + const moveDown = useTurtleStore((state) => state.moveDown); + const setTurtleState = useTurtleStore((state) => state.setTurtleState); useEffect(() => { loadPaths();