From e0e154fcf69a9aa3baad11842c7dc66a3e27d073 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 22 Dec 2023 08:45:35 +0100 Subject: [PATCH] hide Quest Control when there are no Quests --- src/Components/AppShell/AppShell.tsx | 2 +- src/Components/Gaming/Quests.tsx | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Components/AppShell/AppShell.tsx b/src/Components/AppShell/AppShell.tsx index 1f84edd9..f359acf4 100644 --- a/src/Components/AppShell/AppShell.tsx +++ b/src/Components/AppShell/AppShell.tsx @@ -14,7 +14,7 @@ export function AppShell({ appName, children, assetsApi }) { - + { + setQuestsOpen(false); + }, []) + + return ( <>{questsOpen ?
@@ -27,7 +33,7 @@ export function Quests() {
  • - { /** */ + { /** */ }
    : ""