diff --git a/examples/web/react/app.tsx b/examples/web/react/app.tsx index 84739a7b2549f667d2dbc3dab92a183067b716ed..a656d73a4edf99a0ee8b7210f7bb1c21e4718a5a 100644 --- a/examples/web/react/app.tsx +++ b/examples/web/react/app.tsx @@ -55,6 +55,7 @@ type AppProps = { export const App: FC<AppProps> = ({ emulator, backgrounds = ["264653"] }) => { const [paused, setPaused] = useState(false); + const [fullscreen, setFullscreen] = useState(false); const [backgroundIndex, setBackgroundIndex] = useState(0); const getPauseText = () => (paused ? "Resume" : "Pause"); const getPauseIcon = () => @@ -89,7 +90,7 @@ export const App: FC<AppProps> = ({ emulator, backgrounds = ["264653"] }) => { <PanelSplit left={ <div> - <Display onDrawHandler={onDrawHAndler} /> + <Display fullscreen={fullscreen} onDrawHandler={onDrawHAndler} /> </div> } >