misc fixes

This commit is contained in:
2025-11-29 12:59:56 -06:00
parent a4fdd93ede
commit 5100a93659
29 changed files with 124 additions and 476 deletions

View File

@@ -11,7 +11,7 @@ export const useBreakpoints = () => {
switch (true) {
case width < 640: {
size = ScreenSize.SM;
console.log('small')
break;
}
case width >= 640: {
@@ -42,14 +42,10 @@ export const useBreakpoints = () => {
const onWindowResize = () => {
const width: number = window.innerWidth;
const newScreenSize: ScreenSize = getWindowSize(width);
console.log(newScreenSize)
setScreenSize(newScreenSize);
}
useEffect(() => {
console.log(windowWidth)
}, [])
useEffect(() => {
onWindowResize()