aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-08-17 08:41:23 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-08-17 08:41:23 +0800
commit285814646fa147560ffe6a8903eec7220eff09bb (patch)
tree8d7a8fe30792fe8b99dc7ad385cf574a9eb178b6 /ui/app/components
parent2ea05e303dedfd75cad6fdfddfa82da2ee32e92d (diff)
downloadtangerine-wallet-browser-285814646fa147560ffe6a8903eec7220eff09bb.tar
tangerine-wallet-browser-285814646fa147560ffe6a8903eec7220eff09bb.tar.gz
tangerine-wallet-browser-285814646fa147560ffe6a8903eec7220eff09bb.tar.bz2
tangerine-wallet-browser-285814646fa147560ffe6a8903eec7220eff09bb.tar.lz
tangerine-wallet-browser-285814646fa147560ffe6a8903eec7220eff09bb.tar.xz
tangerine-wallet-browser-285814646fa147560ffe6a8903eec7220eff09bb.tar.zst
tangerine-wallet-browser-285814646fa147560ffe6a8903eec7220eff09bb.zip
ui ready
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/pages/create-account/connect-hardware/account-list.js12
-rw-r--r--ui/app/components/wallet-view.js16
2 files changed, 22 insertions, 6 deletions
diff --git a/ui/app/components/pages/create-account/connect-hardware/account-list.js b/ui/app/components/pages/create-account/connect-hardware/account-list.js
index 0acaded6b..488a189ea 100644
--- a/ui/app/components/pages/create-account/connect-hardware/account-list.js
+++ b/ui/app/components/pages/create-account/connect-hardware/account-list.js
@@ -40,8 +40,9 @@ class AccountList extends Component {
const options = this.getHdPaths()
return h('div', [
+ h('h3.hw-connect__hdPath__title', {}, this.context.t('selectHdPath')),
+ h('p.hw-connect__msg', {}, this.context.t('selectPathHelp')),
h('div.hw-connect__hdPath', [
- h('h3.hw-connect__hdPath__title', {}, `HD Path`),
h(Select, {
className: 'hw-connect__hdPath__select',
name: 'hd-path-select',
@@ -53,18 +54,23 @@ class AccountList extends Component {
},
}),
]),
- h('p.hw-connect__msg', {}, this.context.t('selectPathHelp')),
])
}
+
+ capitalizeDevice (device) {
+ return device.slice(0, 1).toUpperCase() + device.slice(1)
+ }
+
renderHeader () {
const { device } = this.props
return (
h('div.hw-connect', [
- h('h3.hw-connect__title', {}, `${device.toUpperCase()} - ${this.context.t('selectAnAccount')}`),
+ h('h3.hw-connect__unlock-title', {}, `${this.context.t('unlock')} ${this.capitalizeDevice(device)}`),
device.toLowerCase() === 'ledger' ? this.renderHdPathSelector() : null,
+ h('h3.hw-connect__hdPath__title', {}, this.context.t('selectAnAccount')),
h('p.hw-connect__msg', {}, this.context.t('selectAnAccountHelp')),
])
)
diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js
index 20c2be0f1..8e092364c 100644
--- a/ui/app/components/wallet-view.js
+++ b/ui/app/components/wallet-view.js
@@ -118,8 +118,18 @@ WalletView.prototype.render = function () {
return kr.accounts.includes(selectedAddress)
})
- const type = keyring.type
- const isLoose = type !== 'HD Key Tree'
+ let label = ''
+ let type
+ if (keyring) {
+ type = keyring.type
+ if (type !== 'HD Key Tree') {
+ if (type.toLowerCase().search('hardware') !== -1) {
+ label = this.context.t('hardware')
+ } else {
+ label = this.context.t('imported')
+ }
+ }
+ }
return h('div.wallet-view.flex-column' + (responsiveDisplayClassname || ''), {
style: {},
@@ -133,7 +143,7 @@ WalletView.prototype.render = function () {
onClick: hideSidebar,
}),
- h('div.wallet-view__keyring-label.allcaps', isLoose ? this.context.t('imported') : ''),
+ h('div.wallet-view__keyring-label.allcaps', label),
h('div.flex-column.flex-center.wallet-view__name-container', {
style: { margin: '0 auto' },