From 82d83cb739bedb07490dc1e49fb344dc319906b8 Mon Sep 17 00:00:00 2001 From: Calvin Koepke Date: Mon, 2 Dec 2024 15:05:22 -0700 Subject: [PATCH] fix: new game modal --- src/components/Modal/Modal.tsx | 2 +- src/components/SetNameModal/SetNameModal.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Modal/Modal.tsx b/src/components/Modal/Modal.tsx index 671446e..a05530e 100644 --- a/src/components/Modal/Modal.tsx +++ b/src/components/Modal/Modal.tsx @@ -57,7 +57,7 @@ const Modal: FC = ({ isOpen, close, children }) => { alt="Noise" className="absolute inset-0 w-full h-full object-cover z-10 opacity-20" /> -
+
{children}
diff --git a/src/components/SetNameModal/SetNameModal.tsx b/src/components/SetNameModal/SetNameModal.tsx index 810f808..e67a7b8 100644 --- a/src/components/SetNameModal/SetNameModal.tsx +++ b/src/components/SetNameModal/SetNameModal.tsx @@ -25,6 +25,7 @@ const SetNameModal: FC = ({ bots, gameData, players, + region, setBots, setGameData, setPlayers, @@ -60,7 +61,9 @@ const SetNameModal: FC = ({ }; const isButtonDisabled = - (title === "Join Multiplayer" && !gameData.code) || !gameData.petName; + (title === "Join Multiplayer" && !gameData.code) || + !gameData.petName || + (title === "New Game" && !region); return (