From 261c5cf36ed43d38809691db66d5d576bec8ed34 Mon Sep 17 00:00:00 2001 From: Eduard Date: Wed, 20 Apr 2022 21:29:43 +0300 Subject: [PATCH] fixes & improvements according to next tickets: #3680, #3683, #3678 --- src/layout/components/layout-header/index.tsx | 6 +++++- src/modules/airdrop/s.module.scss | 2 +- src/modules/airdrop/sections/FirstSection.tsx | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/layout/components/layout-header/index.tsx b/src/layout/components/layout-header/index.tsx index 2cbd6baa..bd3b7c79 100644 --- a/src/layout/components/layout-header/index.tsx +++ b/src/layout/components/layout-header/index.tsx @@ -53,6 +53,8 @@ const LayoutHeader: React.FC = () => { }, [window.innerWidth]); const isGovernancePage = useRouteMatch('/governance'); + const isYieldFarmingPage = useRouteMatch('/yield-farming'); + const isAirdropPage = useRouteMatch('/airdrop'); async function handleAddProjectToken() { if (wallet.connector?.id === 'metamask') { @@ -79,7 +81,9 @@ const LayoutHeader: React.FC = () => {
-

{isGovernancePage ? 'Governance' : 'Yield Farming'}

+ {isGovernancePage && (

Governance

)} + {isYieldFarmingPage && (

Yield Farming

)} + {isAirdropPage && (

Airdrop

)}