reduce button spacing on desktop to be able to reduce breakpoint (#1106)

This commit is contained in:
Athou
2023-06-27 11:13:11 +02:00
parent 9e59a472da
commit 2e26f34135
6 changed files with 18 additions and 9 deletions

View File

@@ -0,0 +1,9 @@
import { useMantineTheme } from "@mantine/core"
import { useMobile } from "hooks/useMobile"
export const useActionButton = () => {
const theme = useMantineTheme()
const mobile = useMobile(theme.breakpoints.xl)
const spacing = mobile ? 14 : 0
return { mobile, spacing }
}