diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-21 10:28:20 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-21 10:28:20 +0800 |
commit | 73a593b42e3a81b721cfa2f8913565a8b800f983 (patch) | |
tree | a0048615de310dbaa5a78963af3bec89e10a5a7f /ui/app/components/dropdowns | |
parent | 71b2dd290b2bbf3107d06d0616ec8858d21b44da (diff) | |
download | tangerine-wallet-browser-73a593b42e3a81b721cfa2f8913565a8b800f983.tar tangerine-wallet-browser-73a593b42e3a81b721cfa2f8913565a8b800f983.tar.gz tangerine-wallet-browser-73a593b42e3a81b721cfa2f8913565a8b800f983.tar.bz2 tangerine-wallet-browser-73a593b42e3a81b721cfa2f8913565a8b800f983.tar.lz tangerine-wallet-browser-73a593b42e3a81b721cfa2f8913565a8b800f983.tar.xz tangerine-wallet-browser-73a593b42e3a81b721cfa2f8913565a8b800f983.tar.zst tangerine-wallet-browser-73a593b42e3a81b721cfa2f8913565a8b800f983.zip |
Hook up template for New Account Modal
Diffstat (limited to 'ui/app/components/dropdowns')
-rw-r--r-- | ui/app/components/dropdowns/components/account-dropdowns.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ui/app/components/dropdowns/components/account-dropdowns.js b/ui/app/components/dropdowns/components/account-dropdowns.js index 9a9fbc0fc..3d32ca7fb 100644 --- a/ui/app/components/dropdowns/components/account-dropdowns.js +++ b/ui/app/components/dropdowns/components/account-dropdowns.js @@ -46,6 +46,7 @@ class AccountDropdowns extends Component { ), }, [ + // MOVE CHECKMARK UP h( Identicon, { @@ -67,6 +68,7 @@ class AccountDropdowns extends Component { }, }, identity.name || ''), h('span', { style: { marginLeft: '20px', fontSize: '24px' } }, isSelected ? h('.check', '✓') : null), + // EDIT ] ) }) @@ -122,7 +124,12 @@ class AccountDropdowns extends Component { diameter: 32, }, ), - h('span', { style: { marginLeft: '20px', fontSize: '24px' } }, 'Create Account'), + h('span', { + style: { marginLeft: '20px', fontSize: '24px' }, + onClick: () => { + actions.showNewAccountModal() + }, + }, 'Create Account'), ], ), h( @@ -351,6 +358,9 @@ const mapDispatchToProps = (dispatch) => { showAccountDetailModal: () => { dispatch(actions.showModal({ name: 'ACCOUNT_DETAILS' })) }, + showNewAccountModal: () => { + dispatch(actions.showModal({ name: 'NEW_ACCOUNT' })) + }, addNewAccount: () => dispatch(actions.addNewAccount()), showImportPage: () => dispatch(actions.showImportPage()), showQrView: (selected, identity) => dispatch(actions.showQrView(selected, identity)), |