refactor: return types for hooks
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { useMediaQuery } from "@mantine/hooks";
|
||||
|
||||
const useIsMobile = () => {
|
||||
const useIsMobile = (): boolean => {
|
||||
return useMediaQuery("(max-width: 48em)");
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user