diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-22 01:06:29 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-22 01:06:29 +0800 |
commit | b836d0483d835b0665a14e41f68f9fbd574fd655 (patch) | |
tree | 39ff2608e900ea16b22705474d04e4f8e24e0bfe /ui/app/components/modals | |
parent | fe5817051b00a7288fb97541c5674641e978aead (diff) | |
download | tangerine-wallet-browser-b836d0483d835b0665a14e41f68f9fbd574fd655.tar tangerine-wallet-browser-b836d0483d835b0665a14e41f68f9fbd574fd655.tar.gz tangerine-wallet-browser-b836d0483d835b0665a14e41f68f9fbd574fd655.tar.bz2 tangerine-wallet-browser-b836d0483d835b0665a14e41f68f9fbd574fd655.tar.lz tangerine-wallet-browser-b836d0483d835b0665a14e41f68f9fbd574fd655.tar.xz tangerine-wallet-browser-b836d0483d835b0665a14e41f68f9fbd574fd655.tar.zst tangerine-wallet-browser-b836d0483d835b0665a14e41f68f9fbd574fd655.zip |
[WIP] Render a QR code in AccountDetailsModal
Diffstat (limited to 'ui/app/components/modals')
-rw-r--r-- | ui/app/components/modals/account-details-modal.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/app/components/modals/account-details-modal.js b/ui/app/components/modals/account-details-modal.js index 2a5359fd4..f7dcf26eb 100644 --- a/ui/app/components/modals/account-details-modal.js +++ b/ui/app/components/modals/account-details-modal.js @@ -10,7 +10,7 @@ const QrView = require('../qr-code') function mapStateToProps (state) { return { address: state.metamask.selectedAddress, - selectedAddress: getSelectedAddress(state), + // selectedAddress: getSelectedAddress(state), selectedIdentity: getSelectedIdentity(state), } } @@ -35,6 +35,8 @@ module.exports = connect(mapStateToProps, mapDispatchToProps)(AccountDetailsModa // It is the only component in this codebase that does so // It utilizes modal styles AccountDetailsModal.prototype.render = function () { + const { selectedIdentity } = this.props + return h('div', {}, [ h('div.account-details-modal-wrapper', { }, [ @@ -53,8 +55,8 @@ AccountDetailsModal.prototype.render = function () { h('div', {}, [ h(QrView, { Qr: { - message: this.props.selectedAddress, - data: this.props.selectedIdentity, + message: this.props.selectedIdentity.name, + data: this.props.selectedIdentity.address, } }, []), ]), |