Skip to content

Commit

Permalink
cleanup chat
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Jun 5, 2024
1 parent adeed03 commit cdffe03
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions client/src/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export function MoreHelpButton({selected=null} : {selected?: number}) {
{t("Show more help!")}
</Button>
}
return <></>
}

/** Placeholder that takes the same space as a button. */
Expand All @@ -83,21 +84,6 @@ export function ChatButtons ({counter=undefined, setCounter=()=>{}, introMessage
const readIntro = useSelector(selectReadIntro(gameId, worldId))

return <div className="button-row">
{/* { ((mobile && !worldId) || worldId && !levelId) &&
// Start button appears only on world selection and level 0.
<Button className="btn"
title=""
to={worldId ? `/${gameId}/world/${worldId}/level/1` : ''}
onClick={() => {
if (!worldId) {
console.log('setting `readIntro` to true')
setPage(1)
dispatch(changedReadIntro({game: gameId, readIntro: true}))
}
}} >
Start&nbsp;<FontAwesomeIcon icon={faArrowRight}/>
</Button>
} */}
{!levelId && (readIntro || (counter >= introMessages.length) ?
((worldId || mobile) &&
<>
Expand Down Expand Up @@ -138,9 +124,8 @@ export function ChatButtons ({counter=undefined, setCounter=()=>{}, introMessage
Skip all
</Button>
</>

)}
{ worldId && levelId && <MoreHelpButton /> }
{ (worldId && levelId) ? <MoreHelpButton /> : <></> }
</div>
}

Expand Down

0 comments on commit cdffe03

Please sign in to comment.