From baab2582b5102b51f546daa0ebd51d6d6fb12529 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Wed, 5 Jul 2023 10:07:10 +0100 Subject: [PATCH] Play the game by default --- website/src/App.tsx | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/website/src/App.tsx b/website/src/App.tsx index 1ba14cd7..df20fa8d 100644 --- a/website/src/App.tsx +++ b/website/src/App.tsx @@ -3,34 +3,27 @@ import { Mgba } from "./mgba"; import { BindingsControl, DefaultBindingsSet } from "./bindings"; function App() { - const [onGame, setOnGame] = useState(false); const [volume, setVolume] = useState(1.0); const [bindings, setBindings] = useState(DefaultBindingsSet()); const [paused, setPaused] = useState(false); return (
- {onGame && ( - <> - - setVolume(Number(e.target.value))} - > - - )} - + + setVolume(Number(e.target.value))} + > +