aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pages/create-account/connect-hardware/account-list.js
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-08-11 09:54:34 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-08-11 09:54:34 +0800
commit5ef80495cfd47a8f5e4caf4b16842155420de62e (patch)
tree079274ed4834561e528956e05d1cc6d2e81fabce /ui/app/components/pages/create-account/connect-hardware/account-list.js
parente2be22a4b722df608cb764042cc8ade6664414d8 (diff)
downloadtangerine-wallet-browser-5ef80495cfd47a8f5e4caf4b16842155420de62e.tar
tangerine-wallet-browser-5ef80495cfd47a8f5e4caf4b16842155420de62e.tar.gz
tangerine-wallet-browser-5ef80495cfd47a8f5e4caf4b16842155420de62e.tar.bz2
tangerine-wallet-browser-5ef80495cfd47a8f5e4caf4b16842155420de62e.tar.lz
tangerine-wallet-browser-5ef80495cfd47a8f5e4caf4b16842155420de62e.tar.xz
tangerine-wallet-browser-5ef80495cfd47a8f5e4caf4b16842155420de62e.tar.zst
tangerine-wallet-browser-5ef80495cfd47a8f5e4caf4b16842155420de62e.zip
refactor to support multiple hw wallets
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.js9
1 files changed, 5 insertions, 4 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 c722d1f55..730f2df34 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
@@ -61,7 +61,7 @@ class AccountList extends Component {
h(
'button.hw-list-pagination__button',
{
- onClick: () => this.props.getPage(-1),
+ onClick: () => this.props.getPage(-1, this.props.device),
},
`< ${this.context.t('prev')}`
),
@@ -69,7 +69,7 @@ class AccountList extends Component {
h(
'button.hw-list-pagination__button',
{
- onClick: () => this.props.getPage(1),
+ onClick: () => this.props.getPage(1, this.props.device),
},
`${this.context.t('next')} >`
),
@@ -95,7 +95,7 @@ class AccountList extends Component {
h(
`button.btn-primary.btn--large.new-account-connect-form__button.unlock ${disabled ? '.btn-primary--disabled' : ''}`,
{
- onClick: this.props.onUnlockAccount.bind(this),
+ onClick: this.props.onUnlockAccount.bind(this, this.props.device),
...buttonProps,
},
[this.context.t('unlock')]
@@ -106,7 +106,7 @@ class AccountList extends Component {
renderForgetDevice () {
return h('div.hw-forget-device-container', {}, [
h('a', {
- onClick: this.props.onForgetDevice.bind(this),
+ onClick: this.props.onForgetDevice.bind(this, this.props.device),
}, this.context.t('forgetDevice')),
])
}
@@ -125,6 +125,7 @@ class AccountList extends Component {
AccountList.propTypes = {
+ device: PropTypes.string.isRequired,
accounts: PropTypes.array.isRequired,
onAccountChange: PropTypes.func.isRequired,
onForgetDevice: PropTypes.func.isRequired,