diff --git a/Frontend/src/components/Nav.jsx b/Frontend/src/components/Nav.jsx index 5126117..51f3320 100644 --- a/Frontend/src/components/Nav.jsx +++ b/Frontend/src/components/Nav.jsx @@ -1,40 +1,49 @@ import './Nav.css'; -import { Link, useNavigate } from 'react-router-dom'; -function Nav({ menuOpen, setMenuOpen }) { - const navigate = useNavigate(); - - const handleClick = (path) => { - setMenuOpen(false); - navigate(path); - }; +import { Link } from 'react-router-dom'; +function Nav({ menuOpen, setMenuOpen }) { const handleScrollToFooter = () => { - setMenuOpen(false); + () => setMenuOpen(false); const footer = document.getElementById('footer'); if (footer) { footer.scrollIntoView({ behavior: 'smooth' }); + } else { + console.error('Footer not found'); } }; + return (