We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e92f9d6 commit c1208b8Copy full SHA for c1208b8
1 file changed
src/components/ContactUs/ContactUs.tsx
@@ -3,7 +3,7 @@ import DesktopVersion from './DesktopVersion';
3
import MobileVersion from './MobileVersion';
4
5
export default function ContactUs() {
6
- const [screenWidth, setScreenWidth] = useState(1024);
+ const [screenWidth, setScreenWidth] = useState<number | null>(null);
7
8
const breakpoint = 1024;
9
@@ -17,6 +17,8 @@ export default function ContactUs() {
17
return () => window.removeEventListener('resize', handleResize);
18
}, []);
19
20
+ if (!screenWidth) return null;
21
+
22
return (
23
<section id="contact-us">
24
<h2 className="font-montserrat text-base uppercase w-fit mx-auto py-5">
0 commit comments