| @@ -22,7 +22,7 @@ const ProcessSection = () => { | |||
| const windowInfo = useWindowSize(); | |||
| useEffect(() => { | |||
| console.log(windowInfo.width); | |||
| //console.log(windowInfo.width); | |||
| if (windowInfo.width < 1000) | |||
| setIsMobile(true); | |||
| else | |||
| @@ -3,7 +3,6 @@ import React, {useState, useEffect} from "react"; | |||
| const useWindowSize = () => { | |||
| // Initialize state with undefined width/height so server and client renders match | |||
| // Learn more here: https://joshwcomeau.com/react/the-perils-of-rehydration/ | |||
| const [windowSize, setWindowSize] = useState({ | |||
| width: undefined, | |||
| height: undefined, | |||
| @@ -134,9 +134,11 @@ const ProcessPage = () => { | |||
| //useAnalytics(); | |||
| useEffect(() => { | |||
| if (windowInfo.width < 1000) setIsMobile(true); | |||
| else setIsMobile(false); | |||
| }, [windowInfo]); | |||
| if (windowInfo.width < 1000) | |||
| setIsMobile(true); | |||
| else | |||
| setIsMobile(false); | |||
| },[windowInfo]); | |||
| return ( | |||
| <PageLayout> | |||