Right rail template

This commit is contained in:
adilallo
2026-02-28 23:16:10 -07:00
parent f5bfb25f5e
commit 0799636c78
60 changed files with 1255 additions and 305 deletions
+2 -1
View File
@@ -52,6 +52,7 @@ export function useMediaQuery(
}
const media = window.matchMedia(mediaQuery);
// eslint-disable-next-line react-hooks/set-state-in-effect -- sync with external system (matchMedia)
setMatches(media.matches);
const listener = (event: MediaQueryListEvent) => {
@@ -67,7 +68,7 @@ export function useMediaQuery(
media.addListener(listener);
return () => media.removeListener(listener);
}
}, [query, direction]);
}, [mediaQuery]);
return matches;
}