diff --git a/client/src/components/Footer.jsx b/client/src/components/Footer.jsx index dc4b0a8..8d582b3 100644 --- a/client/src/components/Footer.jsx +++ b/client/src/components/Footer.jsx @@ -1,30 +1,39 @@ import { Link } from "react-router-dom"; export default function Footer() { + // Function to scroll to top when navigating + const scrollToTop = () => { + window.scrollTo({ top: 0, behavior: 'smooth' }); + }; + return (