diff --git a/client/src/pages/Test2Page.tsx b/client/src/pages/Test2Page.tsx index 95739bf..b8a60a9 100644 --- a/client/src/pages/Test2Page.tsx +++ b/client/src/pages/Test2Page.tsx @@ -53,7 +53,7 @@ function Test2Page() { const [hoveredFloor, setHoveredFloor] = useState(); const navigate = useNavigate(); const [hoveredWing, setHoveredWing] = useState(); - const [selectedIndex, setSelectedIndex] = useState(0); + const [selectedIndex] = useState(0); const [selectedFloor, setSelectedFloor] = useState(); // const rootRef = useRef(null);\ @@ -88,15 +88,15 @@ function Test2Page() { setSelectedFloor(e.currentTarget.dataset["floor"]); } - function prev() { - if (selectedIndex === 0) return; - setSelectedIndex((prev) => prev - 1); - } + // function prev() { + // if (selectedIndex === 0) return; + // setSelectedIndex((prev) => prev - 1); + // } - function next() { - if (selectedIndex === floors.length - 1) return; - setSelectedIndex((prev) => prev + 1); - } + // function next() { + // if (selectedIndex === floors.length - 1) return; + // setSelectedIndex((prev) => prev + 1); + // } useEffect(() => { handleResize();