Skip to content

Commit

Permalink
Merge pull request #1720 from geyserfund/staging
Browse files Browse the repository at this point in the history
fix: amount usd
  • Loading branch information
steliosrammos authored Nov 21, 2024
2 parents 5e9ed2e + d1bf479 commit 1d196b8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
15 changes: 12 additions & 3 deletions src/modules/discovery/pages/hallOfFame/components/GeyserHeroes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,18 @@ const HeroSectionWrapper = ({
return (
<CardLayout w="full" flex={1} h="full" dense paddingY={4}>
<VStack w="full" alignItems={'start'} paddingX={4}>
<Body size="xl" light bold>
{title}
</Body>
<Link
to={getPath(
`hallOfFameHeroes${
title === 'Creators' ? 'Creator' : title === 'Contributors' ? 'Contributor' : 'Ambassador'
}`,
)}
style={{ textDecoration: 'none' }}
>
<Body size="xl" light bold>
{title}
</Body>
</Link>
<Body size="sm light">{description}</Body>
</VStack>
{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const HeroDisplay = ({
'Contributed <1>{{usdAmount}}</1> ({{satsAmount}} sats) with <3>{{numberOfContributions}}</3> contributions to <5>{{numberOfProjects}}</5> projects'
}
values={{
usdAmount: formatAmount(data[labels.amountUsd], FormatCurrencyType.Usdcent),
usdAmount: formatAmount(data[labels.amountUsd], FormatCurrencyType.Usd),
satsAmount: getShortAmountLabel(data[labels.amount]),
numberOfContributions: data[labels.numberOfContributions],
numberOfProjects: data[labels.numberOfProjects],
Expand Down Expand Up @@ -165,7 +165,7 @@ const HeroDisplay = ({
<Trans
i18nKey={'Enabled <1>{{usdAmount}}</1> ({{satsAmount}} sats) across <3>{{numberOfProjects}}</3> projects'}
values={{
usdAmount: formatAmount(data[labels.amountUsd], FormatCurrencyType.Usdcent),
usdAmount: formatAmount(data[labels.amountUsd], FormatCurrencyType.Usd),
satsAmount: getShortAmountLabel(data[labels.amount]),
numberOfProjects: data[labels.numberOfProjects],
}}
Expand Down

0 comments on commit 1d196b8

Please sign in to comment.