Chat Header: Add search as first menu item on mobile devices (#2786)
This commit is contained in:
parent
0d33dea5a6
commit
710b46d565
@ -335,6 +335,14 @@ const HeaderMenuContainer: FC<OwnProps & StateProps> = ({
|
|||||||
style={`left: ${x}px;top: ${y}px;`}
|
style={`left: ${x}px;top: ${y}px;`}
|
||||||
onClose={closeMenu}
|
onClose={closeMenu}
|
||||||
>
|
>
|
||||||
|
{isMobile && canSearch && (
|
||||||
|
<MenuItem
|
||||||
|
icon="search"
|
||||||
|
onClick={handleSearch}
|
||||||
|
>
|
||||||
|
{lang('Search')}
|
||||||
|
</MenuItem>
|
||||||
|
)}
|
||||||
{withForumActions && canCreateTopic && (
|
{withForumActions && canCreateTopic && (
|
||||||
<>
|
<>
|
||||||
<MenuItem
|
<MenuItem
|
||||||
@ -435,14 +443,6 @@ const HeaderMenuContainer: FC<OwnProps & StateProps> = ({
|
|||||||
{lang('VideoCall')}
|
{lang('VideoCall')}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
)}
|
)}
|
||||||
{isMobile && canSearch && (
|
|
||||||
<MenuItem
|
|
||||||
icon="search"
|
|
||||||
onClick={handleSearch}
|
|
||||||
>
|
|
||||||
{lang('Search')}
|
|
||||||
</MenuItem>
|
|
||||||
)}
|
|
||||||
{canMute && (
|
{canMute && (
|
||||||
<MenuItem
|
<MenuItem
|
||||||
icon={isMuted ? 'unmute' : 'mute'}
|
icon={isMuted ? 'unmute' : 'mute'}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user