aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pages/create-account/connect-hardware/account-list.js
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-12 09:21:36 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-12 09:21:36 +0800
commit80e875308b4447ed38d7e0f677570d73956dd9de (patch)
treefb2f0bdf95c6358295e3894b8302867bc8a16d51 /ui/app/components/pages/create-account/connect-hardware/account-list.js
parent89cc48789af2bb6f0925384abe4d4a53179a3956 (diff)
downloadtangerine-wallet-browser-80e875308b4447ed38d7e0f677570d73956dd9de.tar.gz
tangerine-wallet-browser-80e875308b4447ed38d7e0f677570d73956dd9de.tar.zst
tangerine-wallet-browser-80e875308b4447ed38d7e0f677570d73956dd9de.zip
forget device and autiload account features added
Diffstat (limited to 'ui/app/components/pages/create-account/connect-hardware/account-list.js')
-rw-r--r--ui/app/components/pages/create-account/connect-hardware/account-list.js10
1 files changed, 10 insertions, 0 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 170d8f0b3..3bd6a00a7 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
@@ -90,11 +90,20 @@ class AccountList extends Component {
])
}
+ renderForgetDevice () {
+ return h('div.hw-forget-device-container', {}, [
+ h('a', {
+ onClick: this.props.onForgetDevice.bind(this),
+ }, this.context.t('forgetDevice')),
+ ])
+ }
+
render () {
return h('div', {}, [
this.renderAccounts(),
this.renderPagination(),
this.renderButtons(),
+ this.renderForgetDevice(),
])
}
@@ -104,6 +113,7 @@ class AccountList extends Component {
AccountList.propTypes = {
accounts: PropTypes.array.isRequired,
onAccountChange: PropTypes.func.isRequired,
+ onForgetDevice: PropTypes.func.isRequired,
getPage: PropTypes.func.isRequired,
network: PropTypes.string,
selectedAccount: PropTypes.string,