aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/accounts
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-09-13 15:37:41 +0800
committerkumavis <aaron@kumavis.me>2016-09-13 15:37:41 +0800
commitc477411ce0d868023df1b2a3a41900f7a8c20d70 (patch)
treefddfa69f0ff3ed2443e1ec3dd46a1a335ef74a61 /ui/app/accounts
parent93c703d0ef73ac51aa57af668ac0eee645ded782 (diff)
parent2aa8b91a653c22d512460abdf38307119cdfdb5f (diff)
downloadtangerine-wallet-browser-c477411ce0d868023df1b2a3a41900f7a8c20d70.tar
tangerine-wallet-browser-c477411ce0d868023df1b2a3a41900f7a8c20d70.tar.gz
tangerine-wallet-browser-c477411ce0d868023df1b2a3a41900f7a8c20d70.tar.bz2
tangerine-wallet-browser-c477411ce0d868023df1b2a3a41900f7a8c20d70.tar.lz
tangerine-wallet-browser-c477411ce0d868023df1b2a3a41900f7a8c20d70.tar.xz
tangerine-wallet-browser-c477411ce0d868023df1b2a3a41900f7a8c20d70.tar.zst
tangerine-wallet-browser-c477411ce0d868023df1b2a3a41900f7a8c20d70.zip
Merge branch 'library' of github.com:MetaMask/metamask-plugin into library
Diffstat (limited to 'ui/app/accounts')
-rw-r--r--ui/app/accounts/account-list-item.js13
-rw-r--r--ui/app/accounts/index.js4
2 files changed, 7 insertions, 10 deletions
diff --git a/ui/app/accounts/account-list-item.js b/ui/app/accounts/account-list-item.js
index 0b4acdfec..4e0d69ed7 100644
--- a/ui/app/accounts/account-list-item.js
+++ b/ui/app/accounts/account-list-item.js
@@ -7,14 +7,14 @@ const EthBalance = require('../components/eth-balance')
const CopyButton = require('../components/copyButton')
const Identicon = require('../components/identicon')
-module.exports = NewComponent
+module.exports = AccountListItem
-inherits(NewComponent, Component)
-function NewComponent () {
+inherits(AccountListItem, Component)
+function AccountListItem () {
Component.call(this)
}
-NewComponent.prototype.render = function () {
+AccountListItem.prototype.render = function () {
const identity = this.props.identity
var isSelected = this.props.selectedAddress === identity.address
var account = this.props.accounts[identity.address]
@@ -23,9 +23,6 @@ NewComponent.prototype.render = function () {
return (
h(`.accounts-list-option.flex-row.flex-space-between.pointer.hover-white${selectedClass}`, {
key: `account-panel-${identity.address}`,
- style: {
- flex: '1 0 auto',
- },
onClick: (event) => this.props.onShowDetail(identity.address, event),
}, [
@@ -73,7 +70,7 @@ NewComponent.prototype.render = function () {
)
}
-NewComponent.prototype.pendingOrNot = function () {
+AccountListItem.prototype.pendingOrNot = function () {
const pending = this.props.pending
if (pending.length === 0) return null
return h('.pending-dot', pending.length)
diff --git a/ui/app/accounts/index.js b/ui/app/accounts/index.js
index 3af8267b5..735526c60 100644
--- a/ui/app/accounts/index.js
+++ b/ui/app/accounts/index.js
@@ -83,7 +83,7 @@ AccountsScreen.prototype.render = function () {
})
}),
- h('hr.horizontal-line', {key: 'horizontal-line1'}),
+ h('hr.horizontal-line'),
h('div.footer.hover-white.pointer', {
key: 'reveal-account-bar',
onClick: () => {
@@ -91,7 +91,6 @@ AccountsScreen.prototype.render = function () {
},
style: {
display: 'flex',
- flex: '1 0 auto',
height: '40px',
paddint: '10px',
justifyContent: 'center',
@@ -100,6 +99,7 @@ AccountsScreen.prototype.render = function () {
}, [
h('i.fa.fa-plus.fa-lg', {key: ''}),
]),
+ h('hr.horizontal-line'),
]),
unconfTxList.length ? (