🐛 Made aspect ratio 1 to 1

This commit is contained in:
Meierschlumpf
2023-01-03 16:40:15 +01:00
parent c963760717
commit afe3e2fc39
4 changed files with 169 additions and 152 deletions

View File

@@ -19,5 +19,9 @@ export const useResize = (myRef: MutableRefObject<HTMLDivElement | null>) => {
};
}, [myRef, handleResize]);
useEffect(() => {
handleResize();
}, [myRef]);
return { width, height };
};