Browse Source

Merge pull request #737 from mrfelton/feat/node-public-address

feat(wallet): show node public address if set
renovate/lint-staged-8.x
JimmyMow 6 years ago
committed by GitHub
parent
commit
addce367ae
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      app/components/Wallet/ReceiveModal.scss
  2. 3
      app/routes/app/containers/AppContainer.js

10
app/components/Wallet/ReceiveModal.scss

@ -35,8 +35,8 @@
color: $white; color: $white;
.left { .left {
width: 25%; width: 30%;
padding: 30px 40px; padding: 30px 30px;
.header { .header {
h2 { h2 {
@ -78,14 +78,14 @@
} }
.right { .right {
width: 75%; width: 70%;
min-height: 220px; min-height: 220px;
border-left: 1px solid $spaceborder; border-left: 1px solid $spaceborder;
padding: 30px 40px; padding: 30px 30px;
.pubkey, .pubkey,
.address { .address {
padding: 25px; padding: 25px 0;
h4 { h4 {
font-size: 12px; font-size: 12px;

3
app/routes/app/containers/AppContainer.js

@ -1,5 +1,6 @@
import { withRouter } from 'react-router' import { withRouter } from 'react-router'
import { connect } from 'react-redux' import { connect } from 'react-redux'
import get from 'lodash.get'
import { btc } from 'lib/utils' import { btc } from 'lib/utils'
@ -397,7 +398,7 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => {
const receiveModalProps = { const receiveModalProps = {
isOpen: stateProps.address.walletModal, isOpen: stateProps.address.walletModal,
network: stateProps.info.network, network: stateProps.info.network,
pubkey: stateProps.info.data.identity_pubkey, pubkey: get(stateProps.info, 'data.uris[0]') || get(stateProps.info, 'data.identity_pubkey'),
address: stateProps.address.address, address: stateProps.address.address,
alias: stateProps.info.data.alias, alias: stateProps.info.data.alias,
closeReceiveModal: dispatchProps.closeWalletModal closeReceiveModal: dispatchProps.closeWalletModal

Loading…
Cancel
Save