diff --git a/client/src/components/Bylaws.tsx b/client/src/components/Bylaws.tsx index de3c66b..909b50f 100644 --- a/client/src/components/Bylaws.tsx +++ b/client/src/components/Bylaws.tsx @@ -1,7 +1,20 @@ -import React from 'react'; +import React, { useState, useEffect } from 'react'; import { motion } from 'framer-motion'; const Bylaws: React.FC = () => { + const [isMobile, setIsMobile] = useState(false); + + useEffect(() => { + const checkMobile = () => { + setIsMobile(window.innerWidth < 768); // Adjust this breakpoint as needed + }; + + checkMobile(); + window.addEventListener('resize', checkMobile); + + return () => window.removeEventListener('resize', checkMobile); + }, []); + return (
Click the link below to view the MCDi Bylaws PDF:
+ + View Bylaws PDF + +