Chat Header: Add search as first menu item on mobile devices (#2786)

This commit is contained in:
Alexander Zinchuk 2023-03-10 02:34:17 +01:00
parent 0d33dea5a6
commit 710b46d565

View File

@ -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'}