From 4701f1ec957d04f291920f3bf7b9a041669a0d55 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Fri, 23 Apr 2021 18:10:46 +0600 Subject: [PATCH] Remove breakpoint --- resources/js/client/common/hooks/IsMobile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/client/common/hooks/IsMobile.js b/resources/js/client/common/hooks/IsMobile.js index 3319df1c4..11fab7d27 100644 --- a/resources/js/client/common/hooks/IsMobile.js +++ b/resources/js/client/common/hooks/IsMobile.js @@ -1,6 +1,6 @@ import { useEffect, useState } from 'react'; -export const useIsMobile = (breakPoint = 768) => { +export const useIsMobile = () => { const [width, setWidth] = useState(window.innerWidth); useEffect(() => { @@ -9,5 +9,5 @@ export const useIsMobile = (breakPoint = 768) => { return () => window.removeEventListener("resize", handleWindowResize); }, []); - return width <= breakPoint; + return width <= 768; } \ No newline at end of file