AykutSarac 3 rokov pred
rodič
commit
6ddf656ba0
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/containers/Home/index.tsx

+ 1 - 1
src/containers/Home/index.tsx

@@ -19,7 +19,7 @@ const Home: React.FC = () => {
   const { push } = useRouter();
   const [isMobile, setIsMobile] = React.useState(false);
 
-  React.useLayoutEffect(() => {
+  React.useEffect(() => {
     setIsMobile(window.screen.width <= 768);
   }, []);