From d81965cae32848dba4a249629b252362d228b9c1 Mon Sep 17 00:00:00 2001 From: samanthathompson52 Date: Wed, 3 Jan 2024 22:39:49 -0500 Subject: [PATCH] UI tweaks --- client/src/components/EndGame.tsx | 4 ++-- client/src/components/Lobby.tsx | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client/src/components/EndGame.tsx b/client/src/components/EndGame.tsx index 0f4ceba..2664340 100644 --- a/client/src/components/EndGame.tsx +++ b/client/src/components/EndGame.tsx @@ -13,13 +13,13 @@ const EndGame = ({sendJsonMessage, players, isHost}: {sendJsonMessage: any, play const newGameBtn = () => { if (isHost) { return ( -
+
) } else { return ( -
+

Waiting for host to start a new game...

) diff --git a/client/src/components/Lobby.tsx b/client/src/components/Lobby.tsx index 1d392ef..cece917 100644 --- a/client/src/components/Lobby.tsx +++ b/client/src/components/Lobby.tsx @@ -17,20 +17,20 @@ function Lobby({sendJsonMessage, isHost, remainingIcons}: {sendJsonMessage: any, return (
-
+

Select your icon:

{Object.keys(iconMap).map((iconName: string, idx:number) => { if (remainingIcons.includes(iconName)) { return ( -
selectIcon(iconName)}> +
selectIcon(iconName)}>
) } else { return ( -
+
)} @@ -39,13 +39,13 @@ function Lobby({sendJsonMessage, isHost, remainingIcons}: {sendJsonMessage: any,
{isHost && -
+
} {!isHost && -
+

Waiting for host to start the game...

}