From 72e89afac0f11d59e4399f245e6dcc728bec38d9 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 15 Jul 2023 02:46:14 +0530 Subject: cleaned up code, added timeout, etc --- src/components/App.js | 88 +++++++++++++++++++-------------------- src/components/MultiplayerGrid.js | 11 ++++- src/components/style.css | 7 +++- src/logo.svg | 1 - src/react-app-env.d.ts | 1 - src/server/index.js | 9 +--- 6 files changed, 59 insertions(+), 58 deletions(-) delete mode 100644 src/logo.svg delete mode 100644 src/react-app-env.d.ts (limited to 'src') diff --git a/src/components/App.js b/src/components/App.js index 5b13230..3217782 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -35,56 +35,54 @@ const App = () => { const [isHost, setIsHost] = useState(false); const [joinCode, setJoinCode] = useState(); - return gameStarted ? ( + return ( <> - {showMessageBox && - - } + {gameStarted ? + <> + {showMessageBox && + + } - + - {multiplayer ? : : + } + : } - -