removed more unneeded files, fixed mobile menu

This commit is contained in:
subnub
2024-07-02 02:35:06 -04:00
parent 4a8794b7be
commit 62ebfca6a3
9 changed files with 37 additions and 446 deletions
+1 -1
View File
@@ -27,7 +27,6 @@ export const useUtils = () => {
};
export const useClickOutOfBounds = (outOfBoundsCallback: (e: any) => any) => {
console.log("out");
const wrapperRef = useRef<HTMLDivElement>(null);
// TODO: Remove this any
const outOfBoundsClickCheck = useCallback(
@@ -40,6 +39,7 @@ export const useClickOutOfBounds = (outOfBoundsCallback: (e: any) => any) => {
);
useEffect(() => {
console.log("useeffect");
document.addEventListener("mousedown", outOfBoundsClickCheck);
document.addEventListener("touchstart", outOfBoundsClickCheck);