Standardized the mobile width calculation

This commit is contained in:
sabaimran
2024-08-07 18:49:06 +05:30
parent 52fed6023f
commit 370ebdee24
5 changed files with 12 additions and 12 deletions

View File

@@ -270,11 +270,11 @@ export default function Agents() {
useEffect(() => {
if (typeof window !== "undefined") {
setIsMobileWidth(window.innerWidth < 768);
setIsMobileWidth(window.innerWidth < 786);
}
window.addEventListener("resize", () => {
setIsMobileWidth(window.innerWidth < 768);
setIsMobileWidth(window.innerWidth < 786);
});
}, []);