Allow hide chat on mobile

This commit is contained in:
Thomas Zarebczan 2022-01-14 18:51:33 -05:00
parent e545cae537
commit 0b5f10c508
No known key found for this signature in database
GPG key ID: D505010BDB4364BC

View file

@ -259,6 +259,13 @@ export default function LivestreamChatLayout(props: Props) {
</span>
</MenuItem>
<MenuItem className="comment__menu-option" onSelect={() => setChatHidden(true)}>
<span className="menu__link">
<Icon aria-hidden icon={ICONS.EYE} />
{__('Hide Chat')}
</span>
</MenuItem>
{!isPopoutWindow && !isMobile && (
<>
<MenuItem className="comment__menu-option" onSelect={handlePopout}>
@ -267,13 +274,6 @@ export default function LivestreamChatLayout(props: Props) {
{__('Popout Chat')}
</span>
</MenuItem>
<MenuItem className="comment__menu-option" onSelect={() => setChatHidden(true)}>
<span className="menu__link">
<Icon aria-hidden icon={ICONS.EYE} />
{__('Hide Chat')}
</span>
</MenuItem>
</>
)}
</MenuList>