[FIX] Missing burger menu on direct messages (#22211)
parent
7b28e7d43a
commit
60ff3c690d
@ -1,33 +1,38 @@ |
||||
import { Box } from '@rocket.chat/fuselage'; |
||||
import React, { FC } from 'react'; |
||||
|
||||
import { useLayout } from '../../contexts/LayoutContext'; |
||||
import HeaderDivider from './HeaderDivider'; |
||||
|
||||
const Header: FC<any> = (props) => ( |
||||
<Box |
||||
rcx-room-header |
||||
is='header' |
||||
height='x64' |
||||
display='flex' |
||||
justifyContent='center' |
||||
flexDirection='column' |
||||
overflow='hidden' |
||||
flexShrink={0} |
||||
> |
||||
const Header: FC<any> = (props) => { |
||||
const { isMobile } = useLayout(); |
||||
|
||||
return ( |
||||
<Box |
||||
rcx-room-header |
||||
is='header' |
||||
height='x64' |
||||
mi='neg-x4' |
||||
pi='x24' |
||||
display='flex' |
||||
flexGrow={1} |
||||
justifyContent='center' |
||||
alignItems='center' |
||||
flexDirection='column' |
||||
overflow='hidden' |
||||
flexDirection='row' |
||||
{...props} |
||||
/> |
||||
<HeaderDivider /> |
||||
</Box> |
||||
); |
||||
flexShrink={0} |
||||
> |
||||
<Box |
||||
height='x64' |
||||
mi='neg-x4' |
||||
pi={isMobile ? 'x12' : 'x24'} |
||||
display='flex' |
||||
flexGrow={1} |
||||
justifyContent='center' |
||||
alignItems='center' |
||||
overflow='hidden' |
||||
flexDirection='row' |
||||
{...props} |
||||
/> |
||||
<HeaderDivider /> |
||||
</Box> |
||||
); |
||||
}; |
||||
|
||||
export default Header; |
||||
|
||||
Loading…
Reference in new issue