From 74fe6af595cbbda951b43de270f04059eb0e6857 Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Wed, 4 Oct 2023 09:52:04 -0400 Subject: [PATCH] Hotfix: Popups no longer show up during infiltration (#847) --- src/Faction/ui/InvitationModal.tsx | 6 +++--- src/ui/GameRoot.tsx | 12 +++++------- src/ui/React/AlertManager.tsx | 18 ++++++++---------- src/ui/React/LogBoxManager.tsx | 17 ++++++----------- src/ui/React/PromptManager.tsx | 24 ++++++++++++------------ src/ui/React/Snackbar.tsx | 11 ++++++----- src/ui/React/SoftResetButton.tsx | 5 ++--- 7 files changed, 42 insertions(+), 51 deletions(-) diff --git a/src/Faction/ui/InvitationModal.tsx b/src/Faction/ui/InvitationModal.tsx index 556013418..04c0ba97d 100644 --- a/src/Faction/ui/InvitationModal.tsx +++ b/src/Faction/ui/InvitationModal.tsx @@ -9,7 +9,7 @@ import Button from "@mui/material/Button"; export const InvitationEvent = new EventEmitter<[Faction]>(); -export function InvitationModal(): React.ReactElement { +export function InvitationModal({ hidden }: { hidden: boolean }): React.ReactElement { const [faction, setFaction] = useState(null); function join(): void { if (faction === null) return; @@ -25,10 +25,10 @@ export function InvitationModal(): React.ReactElement { useEffect(() => InvitationEvent.subscribe((faction) => setFaction(faction)), []); return ( - setFaction(null)}> + setFaction(null)}> You have received a faction invitation. - Would you like to join {(faction || { name: "" }).name}?
+ Would you like to join {faction?.name}?

Warning: Joining this faction may prevent you from joining other factions during this run!
diff --git a/src/ui/GameRoot.tsx b/src/ui/GameRoot.tsx index ddc967121..5bb4eb893 100644 --- a/src/ui/GameRoot.tsx +++ b/src/ui/GameRoot.tsx @@ -398,13 +398,11 @@ export function GameRoot(): React.ReactElement { {mainPage} )} -
- - - - - -
+