From 67b935b47f1f68bad5624e29c8560ca8a8f531a4 Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Sat, 24 Feb 2024 12:07:50 +0000 Subject: [PATCH 1/2] Fixing things --- src/app/about-us/page.tsx | 1 + src/widgets/Footer/Footer.tsx | 16 +--------------- src/widgets/MapSection/HomeMap/HomeMap.tsx | 3 ++- .../MapSection/HomeMap/icons/geo-green.svg | 8 ++++---- .../MapSection/HomeMap/icons/geo-orange.svg | 10 +++++----- .../MapSection/HomeMap/icons/geo-pink.svg | 10 +++++----- .../MapSection/HomeMap/icons/geo-purple.svg | 8 ++++---- src/widgets/MapSection/HomeMap/icons/geo-red.svg | 12 ++++++------ .../MapSection/HomeMap/icons/geo-yellow.svg | 8 ++++---- 9 files changed, 32 insertions(+), 44 deletions(-) diff --git a/src/app/about-us/page.tsx b/src/app/about-us/page.tsx index 62bca54..2055d7f 100644 --- a/src/app/about-us/page.tsx +++ b/src/app/about-us/page.tsx @@ -30,6 +30,7 @@ const AboutUs = () => {

+

Photo By Mzximvs VdB from Brussels, belgium - Road to Issyk-Kul (south shore), CC BY-SA 2.0

; ); }; diff --git a/src/widgets/Footer/Footer.tsx b/src/widgets/Footer/Footer.tsx index 314c75e..469f680 100644 --- a/src/widgets/Footer/Footer.tsx +++ b/src/widgets/Footer/Footer.tsx @@ -8,22 +8,8 @@ import facebook from "./icons/facebook.svg"; import instagram from "./icons/instagram.svg"; import app_store_btn from "./icons/app-store-btn.svg"; import play_market_btn from "./icons/play-market-btn.svg"; -import { usePathname } from 'next/navigation'; const Footer = () => { - - const pathname = usePathname(); - const isHomePage = pathname === '/'; - const isAboutPage = pathname === '/about'; - let creditsInFooter; - if (isHomePage) { - creditsInFooter =

Photo By ThomasG, CC BY-SA 3.0

; - } else if (isAboutPage) { - creditsInFooter =

Photo By Mzximvs VdB from Brussels, belgium - Road to Issyk-Kul (south shore), CC BY-SA 2.0

; - } else { - creditsInFooter =

; - } - return (