From bf8bdbc0aa7cad7c62811491905f717da690bfd1 Mon Sep 17 00:00:00 2001 From: Lucid Kobold <72232219+LucidKobold@users.noreply.github.com> Date: Wed, 27 Jul 2022 12:27:47 -0400 Subject: [PATCH] Removed unused imports and code. --- src/theme/layout/Footer.tsx | 56 +------------------------------------ 1 file changed, 1 insertion(+), 55 deletions(-) diff --git a/src/theme/layout/Footer.tsx b/src/theme/layout/Footer.tsx index e63dc1a..455c712 100644 --- a/src/theme/layout/Footer.tsx +++ b/src/theme/layout/Footer.tsx @@ -1,48 +1,9 @@ import React /*, { useEffect, useRef, useState }*/ from "react"; -import { - Box, - Text, - VStack, - Link, - // Image, - Button, - BoxProps -} from "@chakra-ui/react"; +import { Box, Text, VStack, Link } from "@chakra-ui/react"; // import BackToTopButton from "./BackToTopButton"; -import { motion } from "framer-motion"; -import Patreon from "../../components/buttons/Patreon"; -import CustomButton from "../../components/buttons/Custom"; -import Twitter from "../../components/buttons/Twitter"; import Buttons from "../../components/buttons"; -const MotionBox = motion(Box); - const Footer = (): JSX.Element => { - // const [showBackToTop, setShowBackToTop] = useState(false); - // const lastScroll = useRef(0); - - // const handleScroll = (): void => { - // if (window.scrollY >= 500) { - // setShowBackToTop(true); - // } else { - // setShowBackToTop(false); - // } - - // const currentScroll = - // window.pageYOffset || document.documentElement.scrollTop; - - // lastScroll.current = currentScroll <= 0 ? 0 : currentScroll; - // }; - - // useEffect(() => { - // if (!window) { - // console.log("waiting for mount"); - // } else if (window) { - // window.addEventListener("scroll", handleScroll); - // } - - // return () => window.removeEventListener("scroll", handleScroll); - // }, []); return ( {/* */} @@ -55,21 +16,6 @@ const Footer = (): JSX.Element => { justifyContent="center" > - {/* - - - - */} ©