forked from Archives/Athou_commafeed
fix desktop entry header shortly rendered as mobile, causing a small visual glitch
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { useMediaQuery } from "@mantine/hooks"
|
||||
import { Constants } from "app/constants"
|
||||
|
||||
export const useMobile = (breakpoint: string = Constants.layout.mobileBreakpoint) => !useMediaQuery(`(min-width: ${breakpoint})`)
|
||||
export const useMobile = (breakpoint: string = Constants.layout.mobileBreakpoint) =>
|
||||
!useMediaQuery(`(min-width: ${breakpoint})`, undefined, {
|
||||
getInitialValueInEffect: false,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user