Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Tokens/Tokens.js
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | return ( | ||||
} | } | ||||
/> | /> | ||||
{balances.totalBalanceInSatoshis < currency.dustSats && ( | {balances.totalBalanceInSatoshis < currency.dustSats && ( | ||||
<AlertMsg> | <AlertMsg> | ||||
You need at least{' '} | You need at least{' '} | ||||
{fromSmallestDenomination( | {fromSmallestDenomination( | ||||
currency.dustSats, | currency.dustSats, | ||||
).toString()}{' '} | ).toString()}{' '} | ||||
{currency.ticker} ($ | {currency.ticker} ( | ||||
{cashtabSettings | |||||
? `${ | |||||
currency.fiatCurrencies[ | |||||
cashtabSettings.fiatCurrency | |||||
].symbol | |||||
} ` | |||||
: '$ '} | |||||
{( | {( | ||||
fromSmallestDenomination( | fromSmallestDenomination( | ||||
currency.dustSats, | currency.dustSats, | ||||
).toString() * fiatPrice | ).toString() * fiatPrice | ||||
).toFixed(4)}{' '} | ).toFixed(4)}{' '} | ||||
USD) to create a token | {cashtabSettings | ||||
? `${currency.fiatCurrencies[ | |||||
cashtabSettings.fiatCurrency | |||||
].slug.toUpperCase()} ` | |||||
: 'USD'} | |||||
) to create a token | |||||
</AlertMsg> | </AlertMsg> | ||||
)} | )} | ||||
{tokens && tokens.length > 0 ? ( | {tokens && tokens.length > 0 ? ( | ||||
<> | <> | ||||
<TokenList | <TokenList | ||||
wallet={wallet} | wallet={wallet} | ||||
tokens={tokens} | tokens={tokens} | ||||
Show All 13 Lines |