diff --git a/web/src/components/footer.tsx b/web/src/components/footer.tsx index d79a2306..edc2c36a 100644 --- a/web/src/components/footer.tsx +++ b/web/src/components/footer.tsx @@ -1,10 +1,10 @@ -"use client" +"use client"; -import { REPO_PATH } from "@/constants" -import { motion } from "framer-motion" -import { ExternalLink, Github, Heart } from "lucide-react" -import Link from "next/link" -import { useState } from "react" +import { REPO_PATH } from "@/constants"; +import { motion } from "framer-motion"; +import { ExternalLink, Github, Heart } from "lucide-react"; +import Link from "next/link"; +import { useState } from "react"; // Pre-define unique IDs for animations to avoid using array indices as keys const HOVER_HEART_IDS = [ @@ -16,44 +16,41 @@ const HOVER_HEART_IDS = [ "hover-heart-6", "hover-heart-7", "hover-heart-8", -] -const BURST_HEART_IDS = ["burst-heart-1", "burst-heart-2", "burst-heart-3", "burst-heart-4", "burst-heart-5"] +]; +const BURST_HEART_IDS = [ + "burst-heart-1", + "burst-heart-2", + "burst-heart-3", + "burst-heart-4", + "burst-heart-5", +]; export function Footer() { - const [isHeartHovered, setIsHeartHovered] = useState(false) - const [isHeartFilled, setIsHeartFilled] = useState(false) + const [isHeartHovered, setIsHeartHovered] = useState(false); + const [isHeartFilled, setIsHeartFilled] = useState(false); // Toggle heart fill state and add extra mini hearts on click const handleHeartClick = () => { - setIsHeartFilled(!isHeartFilled) - } + setIsHeartFilled(!isHeartFilled); + }; return ( -