fix: remove header on non desktop devices (#366)
This commit is contained in:
parent
6efe2c71a0
commit
fe70b50c77
@ -1,4 +1,5 @@
|
||||
import classNames from 'classnames'
|
||||
import { isDesktop } from 'react-device-detect'
|
||||
|
||||
import AccountMenu from 'components/Account/AccountMenu'
|
||||
import EscButton from 'components/Button/EscButton'
|
||||
@ -24,6 +25,8 @@ export default function DesktopHeader() {
|
||||
useStore.setState({ focusComponent: null })
|
||||
}
|
||||
|
||||
if (!isDesktop) return null
|
||||
|
||||
return (
|
||||
<header
|
||||
className={classNames(
|
||||
|
Loading…
Reference in New Issue
Block a user