style: fix formatting with Prettier

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
SuperComboGamer
2025-12-21 20:31:57 -05:00
parent 584f5a3426
commit 8d578558ff
295 changed files with 9088 additions and 10546 deletions

View File

@@ -1,4 +1,4 @@
import { useState, useEffect } from "react";
import { useState, useEffect } from 'react';
export interface WindowState {
isMaximized: boolean;
@@ -13,7 +13,7 @@ export interface WindowState {
*/
export function useWindowState(): WindowState {
const [windowState, setWindowState] = useState<WindowState>(() => {
if (typeof window === "undefined") {
if (typeof window === 'undefined') {
return { isMaximized: false, windowWidth: 0, windowHeight: 0 };
}
const width = window.innerWidth;
@@ -26,7 +26,7 @@ export function useWindowState(): WindowState {
});
useEffect(() => {
if (typeof window === "undefined") return;
if (typeof window === 'undefined') return;
const updateWindowState = () => {
const width = window.innerWidth;
@@ -42,15 +42,12 @@ export function useWindowState(): WindowState {
updateWindowState();
// Listen for resize events
window.addEventListener("resize", updateWindowState);
window.addEventListener('resize', updateWindowState);
return () => {
window.removeEventListener("resize", updateWindowState);
window.removeEventListener('resize', updateWindowState);
};
}, []);
return windowState;
}