From cdffe03f9a09b94190b028d87327cf841fe97d22 Mon Sep 17 00:00:00 2001 From: Jon Eugster Date: Wed, 5 Jun 2024 18:47:20 +0200 Subject: [PATCH] cleanup chat --- client/src/components/chat.tsx | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/client/src/components/chat.tsx b/client/src/components/chat.tsx index 8b734ff..0fbf1cb 100644 --- a/client/src/components/chat.tsx +++ b/client/src/components/chat.tsx @@ -60,6 +60,7 @@ export function MoreHelpButton({selected=null} : {selected?: number}) { {t("Show more help!")} } + return <> } /** Placeholder that takes the same space as a button. */ @@ -83,21 +84,6 @@ export function ChatButtons ({counter=undefined, setCounter=()=>{}, introMessage const readIntro = useSelector(selectReadIntro(gameId, worldId)) return
- {/* { ((mobile && !worldId) || worldId && !levelId) && - // Start button appears only on world selection and level 0. - - } */} {!levelId && (readIntro || (counter >= introMessages.length) ? ((worldId || mobile) && <> @@ -138,9 +124,8 @@ export function ChatButtons ({counter=undefined, setCounter=()=>{}, introMessage Skip all - )} - { worldId && levelId && } + { (worldId && levelId) ? : <> }
}