Skip to content

Commit

Permalink
fixes & improvements according to next tickets: #3680, #3683, #3678
Browse files Browse the repository at this point in the history
  • Loading branch information
edmoiseenkov committed Apr 20, 2022
1 parent bdc46da commit 261c5cf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/layout/components/layout-header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand All @@ -79,7 +81,9 @@ const LayoutHeader: React.FC = () => {
<Icon name="png/universe" width="auto" height="auto" className={s.logo} />
</ExternalLink>
<div className={s.titleDelimiter} />
<h1 className={s.title}>{isGovernancePage ? 'Governance' : 'Yield Farming'}</h1>
{isGovernancePage && (<h1 className={s.title}>Governance</h1>)}
{isYieldFarmingPage && (<h1 className={s.title}>Yield Farming</h1>)}
{isAirdropPage && (<h1 className={s.title}>Airdrop</h1>)}

<nav className={s.nav}>
<Popover
Expand Down
2 changes: 1 addition & 1 deletion src/modules/airdrop/s.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
svg {
cursor: pointer;
&:hover {
color: #131313;
color: var(--theme-icon-hover-color);
+ .tooltip {
visibility: visible;
}
Expand Down
4 changes: 2 additions & 2 deletions src/modules/airdrop/sections/FirstSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const FirstSection = ({ totalAirdropped, claimableTokens, totalRedistributed }:
<div className={s.info}>
<Icon name="info-outlined" width={16} height={16} />
<div className={s.tooltip}>
This number shows the XYZ token rewards distributed so far out of the total of 2,800,000 that are going to
be available for Yield Farming.
This number shows the total amount of XYZ tokens distributed as a whole,
these tokens will all be available when the airdrop period is over.
</div>
</div>
</div>
Expand Down

0 comments on commit 261c5cf

Please sign in to comment.