diff --git a/src/state/AppState.ts b/src/state/AppState.ts index 69975e9e..9dcde3ca 100644 --- a/src/state/AppState.ts +++ b/src/state/AppState.ts @@ -39,6 +39,9 @@ export interface AppStateContext { setShouldDebugImageFallbacks?: Dispatch> shouldShowBaselineGrid?: boolean setShouldShowBaselineGrid?: Dispatch> + // FULLSCREEN + isFullscreen?: boolean + setIsFullscreen?: Dispatch> } export const AppStateContext = createContext({}); diff --git a/src/state/AppStateProvider.tsx b/src/state/AppStateProvider.tsx index 8a8f1da8..5e527c74 100644 --- a/src/state/AppStateProvider.tsx +++ b/src/state/AppStateProvider.tsx @@ -52,6 +52,9 @@ export default function AppStateProvider({ useState(false); const [shouldShowBaselineGrid, setShouldShowBaselineGrid] = useState(false); + // FULLSCREEN + const [isFullscreen, setIsFullscreen] = + useState(false); const invalidateSwr = useCallback(() => setSwrTimestamp(Date.now()), []); @@ -120,6 +123,9 @@ export default function AppStateProvider({ setShouldDebugImageFallbacks, shouldShowBaselineGrid, setShouldShowBaselineGrid, + // FULLSCREEN + isFullscreen, + setIsFullscreen, }} > {children}