|
|
|
@ -44,35 +44,36 @@ AccountDetailScreen.prototype.render = function () { |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
|
|
|
|
|
h('.account-detail-section.flex-column.flex-grow', [ |
|
|
|
|
h('.account-detail-section', [ |
|
|
|
|
|
|
|
|
|
// identicon, label, balance, etc
|
|
|
|
|
h('.account-data-subsection.flex-column.flex-grow', { |
|
|
|
|
h('.account-data-subsection', { |
|
|
|
|
style: { |
|
|
|
|
margin: '0 20px', |
|
|
|
|
}, |
|
|
|
|
}, [ |
|
|
|
|
|
|
|
|
|
// header - identicon + nav
|
|
|
|
|
h('.flex-row.flex-center', { |
|
|
|
|
h('div', { |
|
|
|
|
style: { |
|
|
|
|
marginTop: 28, |
|
|
|
|
display: 'flex', |
|
|
|
|
justifyContent: 'flex-start', |
|
|
|
|
alignItems: 'flex-start', |
|
|
|
|
}, |
|
|
|
|
}, [ |
|
|
|
|
|
|
|
|
|
// large identicon
|
|
|
|
|
h('.identicon-wrapper.flex-column.flex-center.select-none', [ |
|
|
|
|
// large identicon and addresses
|
|
|
|
|
h('.identicon-wrapper.select-none', [ |
|
|
|
|
h(Identicon, { |
|
|
|
|
diameter: 62, |
|
|
|
|
address: selected, |
|
|
|
|
}), |
|
|
|
|
]), |
|
|
|
|
]), |
|
|
|
|
|
|
|
|
|
h('.flex-center', { |
|
|
|
|
h('flex-column', { |
|
|
|
|
style: { |
|
|
|
|
height: '62px', |
|
|
|
|
paddingTop: '8px', |
|
|
|
|
lineHeight: '10px', |
|
|
|
|
marginLeft: '15px', |
|
|
|
|
}, |
|
|
|
|
}, [ |
|
|
|
|
h(EditableLabel, { |
|
|
|
@ -89,23 +90,29 @@ AccountDetailScreen.prototype.render = function () { |
|
|
|
|
h('label.editing-label', [h('.edit-text', 'edit')]), |
|
|
|
|
h('h2.font-medium.color-forest', {name: 'edit'}, identity && identity.name), |
|
|
|
|
]), |
|
|
|
|
]), |
|
|
|
|
|
|
|
|
|
// address and getter actions
|
|
|
|
|
h('.flex-row', { |
|
|
|
|
style: { |
|
|
|
|
marginBottom: 16, |
|
|
|
|
}, |
|
|
|
|
}, [ |
|
|
|
|
|
|
|
|
|
h('.flex-row',{ |
|
|
|
|
style:{ |
|
|
|
|
width: '15em', |
|
|
|
|
justifyContent: 'space-between', |
|
|
|
|
alignItems: 'baseline', |
|
|
|
|
} |
|
|
|
|
},[ |
|
|
|
|
h('div', { |
|
|
|
|
style: { |
|
|
|
|
overflow: 'hidden', |
|
|
|
|
textOverflow: 'ellipsis', |
|
|
|
|
paddingTop: '3px', |
|
|
|
|
width: '5em', |
|
|
|
|
fontSize: 'smaller', |
|
|
|
|
}, |
|
|
|
|
}, ethUtil.toChecksumAddress(selected)), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
h('.flex-row', { |
|
|
|
|
style: { |
|
|
|
|
justifyContent: 'flex-end', |
|
|
|
|
}, |
|
|
|
|
}, [ |
|
|
|
|
h(CopyButton, { |
|
|
|
|
value: ethUtil.toChecksumAddress(selected), |
|
|
|
|
}), |
|
|
|
@ -132,16 +139,19 @@ AccountDetailScreen.prototype.render = function () { |
|
|
|
|
}), |
|
|
|
|
]), |
|
|
|
|
]), |
|
|
|
|
|
|
|
|
|
]), |
|
|
|
|
|
|
|
|
|
// balance + send
|
|
|
|
|
h('.flex-row.flex-space-between', [ |
|
|
|
|
]), |
|
|
|
|
h('.flex-row', { |
|
|
|
|
style: { |
|
|
|
|
justifyContent: 'space-between', |
|
|
|
|
alignItems: 'flex-start', |
|
|
|
|
} |
|
|
|
|
}, [ |
|
|
|
|
|
|
|
|
|
h(EtherBalance, { |
|
|
|
|
value: account && account.balance, |
|
|
|
|
style: { |
|
|
|
|
lineHeight: '50px', |
|
|
|
|
lineHeight: '7px', |
|
|
|
|
}, |
|
|
|
|
}), |
|
|
|
|
|
|
|
|
@ -155,6 +165,13 @@ AccountDetailScreen.prototype.render = function () { |
|
|
|
|
]), |
|
|
|
|
|
|
|
|
|
]), |
|
|
|
|
]), |
|
|
|
|
|
|
|
|
|
// address and getter actions
|
|
|
|
|
|
|
|
|
|
// balance + send
|
|
|
|
|
|
|
|
|
|
]), |
|
|
|
|
|
|
|
|
|
// subview (tx history, pk export confirm)
|
|
|
|
|
h(ReactCSSTransitionGroup, { |
|
|
|
@ -214,4 +231,3 @@ AccountDetailScreen.prototype.transactionList = function () { |
|
|
|
|
AccountDetailScreen.prototype.requestAccountExport = function () { |
|
|
|
|
this.props.dispatch(actions.requestExportAccount()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|