diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-06-22 06:04:00 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-06-22 06:04:00 +0800 |
commit | cf663f1104697440121d32cc6db2a8a1d5d54c5a (patch) | |
tree | 3ed4b8b9fe8c85f3b3a5bf68482c3fb9967f2de5 /ui/app/account-detail.js | |
parent | 265725c6edd62a7f46a9b9cf5a443cf01f0ff00c (diff) | |
parent | dc2ef967028723afe9fe1efd669754723e38a4f0 (diff) | |
download | tangerine-wallet-browser-cf663f1104697440121d32cc6db2a8a1d5d54c5a.tar.gz tangerine-wallet-browser-cf663f1104697440121d32cc6db2a8a1d5d54c5a.tar.zst tangerine-wallet-browser-cf663f1104697440121d32cc6db2a8a1d5d54c5a.zip |
Fix conflict
Diffstat (limited to 'ui/app/account-detail.js')
-rw-r--r-- | ui/app/account-detail.js | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/ui/app/account-detail.js b/ui/app/account-detail.js index c248d9105..dfafb60cb 100644 --- a/ui/app/account-detail.js +++ b/ui/app/account-detail.js @@ -17,7 +17,7 @@ const EditableLabel = require('./components/editable-label') module.exports = connect(mapStateToProps)(AccountDetailScreen) -function mapStateToProps(state) { +function mapStateToProps (state) { return { identities: state.metamask.identities, accounts: state.metamask.accounts, @@ -31,17 +31,15 @@ function mapStateToProps(state) { } inherits(AccountDetailScreen, Component) -function AccountDetailScreen() { +function AccountDetailScreen () { Component.call(this) } -AccountDetailScreen.prototype.render = function() { +AccountDetailScreen.prototype.render = function () { var props = this.props var selected = props.address || Object.keys(props.accounts)[0] var identity = props.identities[selected] var account = props.accounts[selected] - var accountDetail = props.accountDetail - var transactions = props.transactions return ( @@ -88,7 +86,7 @@ AccountDetailScreen.prototype.render = function() { style: { height: '62px', paddingTop: '8px', - } + }, }, [ h(EditableLabel, { textValue: identity ? identity.name : '', @@ -101,7 +99,7 @@ AccountDetailScreen.prototype.render = function() { }, [ // What is shown when not editing + edit text: - h('label.editing-label',[h('.edit-text','edit')]), + h('label.editing-label', [h('.edit-text', 'edit')]), h('h2.font-medium.color-forest', {name: 'edit'}, identity && identity.name), ]), ]), @@ -124,7 +122,7 @@ AccountDetailScreen.prototype.render = function() { h('img.cursor-pointer.color-orange', { src: 'images/copy.svg', onClick: () => copyToClipboard(ethUtil.toChecksumAddress(selected)), - style:{ + style: { margin: '0px 5px', }, }), @@ -179,7 +177,7 @@ AccountDetailScreen.prototype.render = function() { ) } -AccountDetailScreen.prototype.subview = function() { +AccountDetailScreen.prototype.subview = function () { var subview try { subview = this.props.accountDetail.subview @@ -198,7 +196,7 @@ AccountDetailScreen.prototype.subview = function() { } } -AccountDetailScreen.prototype.transactionList = function() { +AccountDetailScreen.prototype.transactionList = function () { const { transactions, unconfTxs, unconfMsgs, address, network } = this.props var txsToRender = transactions @@ -214,18 +212,18 @@ AccountDetailScreen.prototype.transactionList = function() { network, unconfTxs, unconfMsgs, - viewPendingTx:(txId) => { + viewPendingTx: (txId) => { this.props.dispatch(actions.viewPendingTx(txId)) - } + }, }) } -AccountDetailScreen.prototype.navigateToAccounts = function(event){ +AccountDetailScreen.prototype.navigateToAccounts = function (event) { event.stopPropagation() this.props.dispatch(actions.showAccountsPage()) } -AccountDetailScreen.prototype.requestAccountExport = function() { +AccountDetailScreen.prototype.requestAccountExport = function () { this.props.dispatch(actions.requestExportAccount()) } |