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;`}
|
||||
onClose={closeMenu}
|
||||
>
|
||||
{isMobile && canSearch && (
|
||||
<MenuItem
|
||||
icon="search"
|
||||
onClick={handleSearch}
|
||||
>
|
||||
{lang('Search')}
|
||||
</MenuItem>
|
||||
)}
|
||||
{withForumActions && canCreateTopic && (
|
||||
<>
|
||||
<MenuItem
|
||||
@ -435,14 +443,6 @@ const HeaderMenuContainer: FC<OwnProps & StateProps> = ({
|
||||
{lang('VideoCall')}
|
||||
</MenuItem>
|
||||
)}
|
||||
{isMobile && canSearch && (
|
||||
<MenuItem
|
||||
icon="search"
|
||||
onClick={handleSearch}
|
||||
>
|
||||
{lang('Search')}
|
||||
</MenuItem>
|
||||
)}
|
||||
{canMute && (
|
||||
<MenuItem
|
||||
icon={isMuted ? 'unmute' : 'mute'}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user