style: Refactor PathRecorder to utilize individual turtle movement functions

This commit is contained in:
MayaTheShy
2026-02-20 03:42:13 -05:00
parent ebe4f10df5
commit bca3cb4508

View File

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