diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-08-01 02:34:59 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-08-01 02:34:59 +0530 |
commit | b8babd592b60b1a2cfedac3956184207a3d4bb8d (patch) | |
tree | 3aa3f708e3f3c6b7d804ecdc53c4fce755853c91 /src/components/App.js | |
parent | 1a40b90e29dc61ed28ad251b49e9175a2215c3d0 (diff) |
created menu entry to enter join code
Diffstat (limited to 'src/components/App.js')
-rw-r--r-- | src/components/App.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/App.js b/src/components/App.js index db5af1b..5b13230 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -33,6 +33,7 @@ const App = () => { const [showMessageBox, setShowMessageBox] = useState(false); const [message, setMessage] = useState(""); const [isHost, setIsHost] = useState(false); + const [joinCode, setJoinCode] = useState(); return gameStarted ? ( <> @@ -61,6 +62,7 @@ const App = () => { setScoreO={setScoreO} setMessage={setMessage} setShowMessage={setShowMessageBox} + joinCode={joinCode} /> : <Grid turn={turn} setTurn={setTurn} @@ -81,6 +83,7 @@ const App = () => { setMultiplayer={setMultiplayer} setGameStarted={setGameStarted} setIsHost={setIsHost} + setJoinCode={setJoinCode} /> <Footer/> </> |