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>
<span className={styles.channelAmount}>
{Boolean(balance.channelBalance) && (
<Value
value={balance.channelBalance}
currency={ticker.currency}
currentTicker={currentTicker}
fiatTicker={ticker.fiatTicker}
/>
<span>
<Value
value={balance.channelBalance}
currency={ticker.currency}
currentTicker={currentTicker}
fiatTicker={ticker.fiatTicker}
/>
<i> {currencyName}</i>
</span>
)}
{Boolean(fiatAmount) && (
<span>
{'≈ '}
{' ≈ '}
<FormattedNumber
currency={ticker.fiatTicker}
style="currency"

Loading…
Cancel
Save