diff --git a/src/components/Footer/Footer.jsx b/src/components/Footer/Footer.jsx index f4fe30a..4906ceb 100644 --- a/src/components/Footer/Footer.jsx +++ b/src/components/Footer/Footer.jsx @@ -3,12 +3,10 @@ import {Link} from "react-router"; import {useState} from "react"; import Modal from "../ui/modal/modal.jsx"; import Button from "../ui/button/button.jsx"; +import scrollToTop from "../../utils/scrollToTop.js"; export default function Footer(){ const currentYear = new Date().getFullYear(); - const scrollToTop = () => { - window.scrollTo({ top: 0, left: 0, behavior: 'smooth' }); - }; const [isCopyrightModal, setIsCopyrightModal] = useState(false); @@ -28,11 +26,11 @@ export default function Footer(){