Ignore react-hook warning
This commit is contained in:
parent
519b54f2b4
commit
be98448156
1 changed files with 1 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ function Coordinates({ latitude, longitude }) {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (window.screen.width < 480) setSmallScreen(true);
|
if (window.screen.width < 480) setSmallScreen(true);
|
||||||
else setSmallScreen(false);
|
else setSmallScreen(false);
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [window.screen.width]);
|
}, [window.screen.width]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue