Allow hide chat on mobile
This commit is contained in:
parent
e545cae537
commit
0b5f10c508
1 changed files with 7 additions and 7 deletions
|
@ -259,6 +259,13 @@ export default function LivestreamChatLayout(props: Props) {
|
||||||
</span>
|
</span>
|
||||||
</MenuItem>
|
</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 && (
|
{!isPopoutWindow && !isMobile && (
|
||||||
<>
|
<>
|
||||||
<MenuItem className="comment__menu-option" onSelect={handlePopout}>
|
<MenuItem className="comment__menu-option" onSelect={handlePopout}>
|
||||||
|
@ -267,13 +274,6 @@ export default function LivestreamChatLayout(props: Props) {
|
||||||
{__('Popout Chat')}
|
{__('Popout Chat')}
|
||||||
</span>
|
</span>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|
||||||
<MenuItem className="comment__menu-option" onSelect={() => setChatHidden(true)}>
|
|
||||||
<span className="menu__link">
|
|
||||||
<Icon aria-hidden icon={ICONS.EYE} />
|
|
||||||
{__('Hide Chat')}
|
|
||||||
</span>
|
|
||||||
</MenuItem>
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</MenuList>
|
</MenuList>
|
||||||
|
|
Loading…
Add table
Reference in a new issue