style: Refactor PathRecorder to utilize individual turtle movement functions
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user