Skip to content

Commit

Permalink
remove
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachel Braverman committed Jan 17, 2024
1 parent 478ef79 commit fa9dfe0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 269 deletions.
71 changes: 0 additions & 71 deletions src/components/ruler/XAxis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,74 +17,3 @@ const XAxis = ({ labels }: IProps) => {
};

export default XAxis;
// import { useState, useRef, useEffect } from "react";

// interface IProps {
// labels: number[];
// }

// const XAxis = ({ labels }: IProps) => {
// const [startIndex, setStartIndex] = useState(0);
// const containerRef = useRef(null);

// // useEffect(() => {
// // const handleWheel = (event) => {
// // const step = 1;
// // if (event.deltaY < 0) {
// // // Scrolling up
// // setStartIndex(Math.max(0, startIndex - step));
// // } else if (event.deltaY > 0) {
// // // Scrolling down
// // setStartIndex(Math.min(labels.length - 21, startIndex + step));
// // }
// // };

// // const containerElement = containerRef.current;
// // if (containerElement) {
// // containerElement.addEventListener("wheel", handleWheel);

// // return () => {
// // containerElement.removeEventListener("wheel", handleWheel);
// // };
// // }
// // }, [startIndex, labels]);

// const handleArrowClick = (direction: "left" | "right") => {
// const step = 1;
// if (direction === "left") {
// setStartIndex(Math.max(0, startIndex - step));
// } else {
// setStartIndex(Math.min(labels.length - 21, startIndex + step));
// }
// };

// return (
// <div className="flex flex-col bottom-0 left-0 right-0 ">
// <div className="flex justify-between">
// {startIndex > 0 && (
// <div className="right-0 mr-2 cursor-pointer" onClick={() => handleArrowClick("left")}>
// &lt; {/* Left arrow */}
// rachel
// </div>
// )}
// {startIndex < labels.length - 21 && (
// <div className="text-xl ml-2 cursor-pointer" onClick={() => handleArrowClick("right")}>
// &gt; {/* Right arrow */}
// </div>
// )}
// </div>
// <div ref={containerRef} className="fixed bottom-20 left-0 right-0 flex justify-between border-t-2 border-gray-900 pt-0 mx-0 items-center">
// <div className={`lex-none w-1/${labels.length == 11 ? "20" : "40"}`}></div>
// {labels.slice(startIndex, startIndex + 21).map((label) => (
// <div key={label} className={`text-xl text-color flex flex-col items-center ${label % 5 === 0 && "font-bold"}`}>
// <div className="h-3 border-l-2 border-gray-900 w-px" />
// {label}
// </div>
// ))}
// <div className={`lex-none w-1/${labels.length == 11 ? "20" : "40"}`}></div>
// </div>
// </div>
// );
// };

// export default XAxis;
198 changes: 0 additions & 198 deletions src/components/ui/dropdown-menu.tsx

This file was deleted.

0 comments on commit fa9dfe0

Please sign in to comment.