fix: remove header on non desktop devices (#366)

This commit is contained in:
Linkie Link 2023-08-14 11:02:48 +02:00 committed by GitHub
parent 6efe2c71a0
commit fe70b50c77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(