Browse Source

fix(channels): display currencyName in network

Display the currency name (BTC/tBTC etc) next to the amount that shows
at the top of the network view.
renovate/lint-staged-8.x
Tom Kirkpatrick 6 years ago
parent
commit
ce5bf30f3e
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  1. 17
      app/components/Contacts/Network/Network.js

17
app/components/Contacts/Network/Network.js

@ -174,16 +174,19 @@ class Network extends Component {
</h2> </h2>
<span className={styles.channelAmount}> <span className={styles.channelAmount}>
{Boolean(balance.channelBalance) && ( {Boolean(balance.channelBalance) && (
<Value <span>
value={balance.channelBalance} <Value
currency={ticker.currency} value={balance.channelBalance}
currentTicker={currentTicker} currency={ticker.currency}
fiatTicker={ticker.fiatTicker} currentTicker={currentTicker}
/> fiatTicker={ticker.fiatTicker}
/>
<i> {currencyName}</i>
</span>
)} )}
{Boolean(fiatAmount) && ( {Boolean(fiatAmount) && (
<span> <span>
{'≈ '} {' ≈ '}
<FormattedNumber <FormattedNumber
currency={ticker.fiatTicker} currency={ticker.fiatTicker}
style="currency" style="currency"

Loading…
Cancel
Save