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();