From 38e9056509c5df501c0f4fd74d59061b3aa5dd4a Mon Sep 17 00:00:00 2001 From: Jieren Chen Date: Mon, 23 Sep 2024 16:54:19 -0400 Subject: [PATCH] footer --- components/layout/footer-menu.tsx | 46 ------------------------------- components/layout/footer.tsx | 1 - 2 files changed, 47 deletions(-) delete mode 100644 components/layout/footer-menu.tsx diff --git a/components/layout/footer-menu.tsx b/components/layout/footer-menu.tsx deleted file mode 100644 index c5cd61035..000000000 --- a/components/layout/footer-menu.tsx +++ /dev/null @@ -1,46 +0,0 @@ -'use client'; - -import clsx from 'clsx'; -import { Menu } from 'lib/types'; -import Link from 'next/link'; -import { usePathname } from 'next/navigation'; -import { useEffect, useState } from 'react'; - -export function FooterMenuItem({ item }: { item: Menu }) { - const pathname = usePathname(); - const [active, setActive] = useState(pathname === item.path); - - useEffect(() => { - setActive(pathname === item.path); - }, [pathname, item.path]); - - return ( -
  • - - {item.title} - -
  • - ); -} - -export default function FooterMenu({ menu }: { menu: Menu[] }) { - if (!menu.length) return null; - - return ( - - ); -} diff --git a/components/layout/footer.tsx b/components/layout/footer.tsx index 4ca6ad928..dba9e2b52 100644 --- a/components/layout/footer.tsx +++ b/components/layout/footer.tsx @@ -7,7 +7,6 @@ const { COMPANY_NAME, SITE_NAME } = process.env; export default async function Footer() { const currentYear = new Date().getFullYear(); const copyrightDate = 2023 + (currentYear > 2023 ? `-${currentYear}` : ''); - const skeleton = 'w-full h-6 animate-pulse rounded bg-neutral-200 dark:bg-neutral-700'; const copyrightName = COMPANY_NAME || SITE_NAME || ''; return (