diff options
author | Vidhu Kant Sharma <araararagikoyomi@protonmail.com> | 2021-08-01 02:36:22 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-01 02:36:22 +0530 |
commit | 69d3376df1db5659bd413dbac2b563b2bd1850b6 (patch) | |
tree | 3aa3f708e3f3c6b7d804ecdc53c4fce755853c91 /src/components/App.js | |
parent | 6b58ffac163b9b3637bfab1294069c55b6d5702c (diff) | |
parent | b8babd592b60b1a2cfedac3956184207a3d4bb8d (diff) |
Merge pull request #2 from MikunoNaka/multiplayer
Merge multiplayer into main
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/> </> |