From 7e16f500cb7bc0cfd8bafbf6bb1555704f771231 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 29 Apr 2022 12:13:34 +0200 Subject: chore: remove old pages, components, helpers and types Since I'm using new components, I will also rewrite the GraphQL queries so it is easier to start from scratch. --- src/components/Footer/Footer.tsx | 54 ---------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 src/components/Footer/Footer.tsx (limited to 'src/components/Footer/Footer.tsx') diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx deleted file mode 100644 index 381b4a8..0000000 --- a/src/components/Footer/Footer.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import { ButtonLink } from '@components/Buttons'; -import Copyright from '@components/Copyright/Copyright'; -import FooterNav from '@components/FooterNav/FooterNav'; -import { ArrowIcon } from '@components/Icons'; -import { useEffect, useState } from 'react'; -import { useIntl } from 'react-intl'; -import styles from './Footer.module.scss'; - -const Footer = () => { - const intl = useIntl(); - const [backToTopClasses, setBackToTopClasses] = useState( - `${styles['back-to-top']} ${styles['back-to-top--hidden']}` - ); - - const handleScroll = () => { - const currentScrollY = window.scrollY; - - if (currentScrollY > 300) { - setBackToTopClasses( - `${styles['back-to-top']} ${styles['back-to-top--visible']}` - ); - } else { - setBackToTopClasses( - `${styles['back-to-top']} ${styles['back-to-top--hidden']}` - ); - } - }; - - useEffect(() => { - window.addEventListener('scroll', handleScroll); - return () => window.removeEventListener('scroll', handleScroll); - }, []); - - return ( - - ); -}; - -export default Footer; -- cgit v1.2.3