Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

scan: shorten marketcap amount on landing page #1900

Merged
merged 6 commits into from
Jun 8, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions scan/src/components/ChainInfoHighlights.re
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ let make = (~latestBlockSub: Sub.t(BlockSub.t)) => {
let%Sub (_, {financial}, _) = allSub;
(
{
let marketcap = "$" ++ financial.usdMarketCap->Format.fPretty;
let marketcap =
"$" ++ (financial.usdMarketCap /. 1e6 |> Format.fPretty(~digits=1)) ++ "M";
tansawit marked this conversation as resolved.
Show resolved Hide resolved
<Text
value=marketcap
size=Text.Xxxl
Expand All @@ -144,12 +145,12 @@ let make = (~latestBlockSub: Sub.t(BlockSub.t)) => {
/>;
},
{
let marketcap = financial.circulatingSupply;
let marketcap = financial.btcMarketCap;
<div className={Styles.withWidth(170)}>
<div className=Styles.vFlex>
<Text value={marketcap->Format.fPretty} code=true weight=Text.Thin />
<HSpacing size=Spacing.xs />
<Text value="BAND" color=Colors.gray7 weight=Text.Thin spacing={Text.Em(0.01)} />
<Text value="BTC" color=Colors.gray7 weight=Text.Thin spacing={Text.Em(0.01)} />
</div>
</div>;
},
Expand Down