refactor: Move depths and breakpoints out of theme

This commit is contained in:
Tom Moor
2022-04-04 21:20:38 -07:00
parent 20a69b711a
commit 2e41ace386
25 changed files with 73 additions and 79 deletions

View File

@@ -1,6 +1,6 @@
import { base } from "@shared/theme";
import { breakpoints } from "@shared/styles";
import useMediaQuery from "~/hooks/useMediaQuery";
export default function useMobile(): boolean {
return useMediaQuery(`(max-width: ${base.breakpoints.tablet - 1}px)`);
return useMediaQuery(`(max-width: ${breakpoints.tablet - 1}px)`);
}