diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-04 08:08:19 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-04 08:08:19 +0800 |
commit | ecb09fcc0aa801f553cd83659c06c429b5cfbf33 (patch) | |
tree | 0aa4c125972449539211805cbb91af53484f7464 /ui/app | |
parent | 67f10d660f1a7f5875253eb0de097e1fab9ad912 (diff) | |
download | tangerine-wallet-browser-ecb09fcc0aa801f553cd83659c06c429b5cfbf33.tar tangerine-wallet-browser-ecb09fcc0aa801f553cd83659c06c429b5cfbf33.tar.gz tangerine-wallet-browser-ecb09fcc0aa801f553cd83659c06c429b5cfbf33.tar.bz2 tangerine-wallet-browser-ecb09fcc0aa801f553cd83659c06c429b5cfbf33.tar.lz tangerine-wallet-browser-ecb09fcc0aa801f553cd83659c06c429b5cfbf33.tar.xz tangerine-wallet-browser-ecb09fcc0aa801f553cd83659c06c429b5cfbf33.tar.zst tangerine-wallet-browser-ecb09fcc0aa801f553cd83659c06c429b5cfbf33.zip |
Disable account selection dropdown from account details
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/account-detail.js | 3 | ||||
-rw-r--r-- | ui/app/components/account-dropdowns.js | 20 |
2 files changed, 16 insertions, 7 deletions
diff --git a/ui/app/account-detail.js b/ui/app/account-detail.js index a233c6861..22a883096 100644 --- a/ui/app/account-detail.js +++ b/ui/app/account-detail.js @@ -128,6 +128,7 @@ AccountDetailScreen.prototype.render = function () { selected, network, identities: props.identities, + enableAccountOptions: true, }, ), ] @@ -145,7 +146,6 @@ AccountDetailScreen.prototype.render = function () { h('div', { style: { - marginTop: '-10px', overflow: 'hidden', textOverflow: 'ellipsis', paddingTop: '3px', @@ -153,7 +153,6 @@ AccountDetailScreen.prototype.render = function () { fontSize: '13px', fontFamily: 'Montserrat Light', textRendering: 'geometricPrecision', - marginTop: '10px', marginBottom: '15px', color: '#AEAEAE', }, diff --git a/ui/app/components/account-dropdowns.js b/ui/app/components/account-dropdowns.js index 79e6cff59..8d8cb211e 100644 --- a/ui/app/components/account-dropdowns.js +++ b/ui/app/components/account-dropdowns.js @@ -183,7 +183,7 @@ class AccountDropdowns extends Component { } render () { - const { style } = this.props + const { style, enableAccountsSelector, enableAccountOptions } = this.props const { optionsMenuActive, accountSelectorActive } = this.state return h( @@ -192,10 +192,12 @@ class AccountDropdowns extends Component { style: style, }, [ - h( + enableAccountsSelector && h( 'i.fa.fa-angle-down', { - style: {}, + style: { + fontSize: '1.8em', + }, onClick: (event) => { event.stopPropagation() this.setState({ @@ -206,10 +208,13 @@ class AccountDropdowns extends Component { }, this.renderAccountSelector(), ), - h( + enableAccountOptions && h( 'i.fa.fa-ellipsis-h', { - style: { 'marginLeft': '10px'}, + style: { + marginRight: '0.5em', + fontSize: '1.8em', + }, onClick: (event) => { event.stopPropagation() this.setState({ @@ -225,6 +230,11 @@ class AccountDropdowns extends Component { } } +AccountDropdowns.defaultProps = { + enableAccountsSelector: false, + enableAccountOptions: false, +} + AccountDropdowns.propTypes = { identities: PropTypes.objectOf(PropTypes.object), selected: PropTypes.string, |