From be98448156721f76031af43760eae0271858e4ce Mon Sep 17 00:00:00 2001 From: rzmk Date: Fri, 24 Dec 2021 20:41:06 -0500 Subject: [PATCH] Ignore react-hook warning --- src/components/Coordinates.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Coordinates.js b/src/components/Coordinates.js index d5ff56f..9e7ce8c 100644 --- a/src/components/Coordinates.js +++ b/src/components/Coordinates.js @@ -5,6 +5,7 @@ function Coordinates({ latitude, longitude }) { useEffect(() => { if (window.screen.width < 480) setSmallScreen(true); else setSmallScreen(false); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [window.screen.width]); return (