From 6a18d7bea3b173753686c22e9d0d1f57584919ef Mon Sep 17 00:00:00 2001 From: Yevhenii Kaliaiev Date: Fri, 26 Sep 2025 00:08:55 +0300 Subject: [PATCH] added active state for footer tabs --- src/components/Layout/Footer/Footer.tsx | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/components/Layout/Footer/Footer.tsx b/src/components/Layout/Footer/Footer.tsx index 2744179..44f78f6 100644 --- a/src/components/Layout/Footer/Footer.tsx +++ b/src/components/Layout/Footer/Footer.tsx @@ -7,12 +7,14 @@ import Link from 'next/link'; import Logo from '@/components/UI/NavBar/Logo'; import { FooterCategories } from '@/types/FooterCategories'; import ArrowUpComponent from '@/components/UI/Footer/ArrowUpComponent'; +import { usePathname } from 'next/navigation'; // #endregion const Footer: React.FC = () => { const scrollToTop = () => { window.scrollTo({ top: 0, behavior: 'smooth' }); }; + const pathname = usePathname(); return (