diff --git a/SerpentRace_Frontend/src/components/Footer/Footer.jsx b/SerpentRace_Frontend/src/components/Footer/Footer.jsx index 2752c031..395d8dbd 100644 --- a/SerpentRace_Frontend/src/components/Footer/Footer.jsx +++ b/SerpentRace_Frontend/src/components/Footer/Footer.jsx @@ -1,43 +1,17 @@ -import React, { useEffect, useRef, useState } from "react" +import React from "react" import { Link } from "react-router-dom" import Logo from "../../assets/pictures/Logo" - const ArrowUpIcon = () => const Footer = () => { - const [isVisible, setIsVisible] = useState(false) - const footerRef = useRef(null) - - useEffect(() => { - const observer = new IntersectionObserver( - ([entry]) => { - setIsVisible(entry.isIntersecting) - }, - { threshold: 0.3 } - ) - - if (footerRef.current) { - observer.observe(footerRef.current) - } - - return () => { - if (footerRef.current) { - observer.unobserve(footerRef.current) - } - } - }, []) - const scrollToTop = () => { window.scrollTo({ top: 0, behavior: "smooth" }) } return (