Browse Source
Merge pull request #466 from LN-Zap/feature/testnet-prefix-channel-balance
Feature/testnet prefix channel balance
renovate/lint-staged-8.x
Ben Woosley
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
3 deletions
-
app/components/Contacts/Network.js
-
app/routes/app/containers/AppContainer.js
|
|
@ -57,7 +57,9 @@ class Network extends Component { |
|
|
|
|
|
|
|
suggestedNodesProps, |
|
|
|
|
|
|
|
network |
|
|
|
network, |
|
|
|
|
|
|
|
currencyName |
|
|
|
} = this.props |
|
|
|
|
|
|
|
const refreshClicked = () => { |
|
|
@ -151,7 +153,7 @@ class Network extends Component { |
|
|
|
<section> |
|
|
|
<h2>My Network</h2> |
|
|
|
<span className={styles.channelAmount}> |
|
|
|
{btc.satoshisToBtc(balance.channelBalance)}BTC ≈ ${usdAmount |
|
|
|
{btc.satoshisToBtc(balance.channelBalance)} {currencyName} ≈ ${usdAmount |
|
|
|
? usdAmount.toLocaleString() |
|
|
|
: ''} |
|
|
|
</span> |
|
|
@ -357,7 +359,9 @@ Network.propTypes = { |
|
|
|
changeFilter: PropTypes.func.isRequired, |
|
|
|
updateChannelSearchQuery: PropTypes.func.isRequired, |
|
|
|
setSelectedChannel: PropTypes.func.isRequired, |
|
|
|
closeChannel: PropTypes.func.isRequired |
|
|
|
closeChannel: PropTypes.func.isRequired, |
|
|
|
|
|
|
|
currencyName: PropTypes.string.isRequired |
|
|
|
} |
|
|
|
|
|
|
|
export default Network |
|
|
|
|
|
@ -313,6 +313,7 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => { |
|
|
|
nonActiveFilters: stateProps.nonActiveFilters, |
|
|
|
ticker: stateProps.ticker, |
|
|
|
network: stateProps.info.network, |
|
|
|
currencyName: stateProps.currencyName, |
|
|
|
|
|
|
|
fetchChannels: dispatchProps.fetchChannels, |
|
|
|
openContactsForm: dispatchProps.openContactsForm, |
|
|
|