This commit is contained in:
parent
93893f0a27
commit
7a8ece1587
@ -2,7 +2,7 @@ import { useEffect, useState } from "react";
|
|||||||
|
|
||||||
export function useIsMobile() {
|
export function useIsMobile() {
|
||||||
const checkMobile = () => {
|
const checkMobile = () => {
|
||||||
return window.innerWidth < 1536;
|
return window.innerWidth < 768;
|
||||||
};
|
};
|
||||||
const [isMobile, setIsMobile] = useState(checkMobile());
|
const [isMobile, setIsMobile] = useState(checkMobile());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user