finish footer

This commit is contained in:
2026-01-13 20:14:50 +01:00
parent 24a9055eea
commit 89a8ef87bb
2 changed files with 6 additions and 5 deletions
+3 -5
View File
@@ -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(){
</div>
<nav className={styles.footerNav}>
<Link to="/RGPD" className={styles.link}>
<Link to="/RGPD" className={styles.link} onClick={scrollToTop}>
Fiche RGPD
</Link>
<span className={styles.separator}></span>
<Link to="/legalNotices" className={styles.link}>
<Link to="/legalNotices" className={styles.link} onClick={scrollToTop}>
Mentions légales
</Link>
<span className={styles.separator}></span>
+3
View File
@@ -0,0 +1,3 @@
export default function scrollToTop () {
window.scrollTo({ top: 0, left: 0, behavior: 'smooth' });
};