diff options
author | Chi Kei Chan <chikeichan@gmail.com> | 2018-01-13 05:41:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-13 05:41:46 +0800 |
commit | 89a8267fe70b62739043c09e855d6aa97af8769e (patch) | |
tree | 5f360e4a65a0768817913e99840e3705439432e2 /ui/app/components/modals | |
parent | bdcee058dc278c46c828f376476f121417481385 (diff) | |
parent | 613465fe965d41e0f0936aec499a4691c0191963 (diff) | |
download | tangerine-wallet-browser-89a8267fe70b62739043c09e855d6aa97af8769e.tar.gz tangerine-wallet-browser-89a8267fe70b62739043c09e855d6aa97af8769e.tar.zst tangerine-wallet-browser-89a8267fe70b62739043c09e855d6aa97af8769e.zip |
Merge pull request #2928 from alextsg/cb-388
[NewUI] Update main view styling
Diffstat (limited to 'ui/app/components/modals')
-rw-r--r-- | ui/app/components/modals/account-details-modal.js | 4 | ||||
-rw-r--r-- | ui/app/components/modals/export-private-key-modal.js | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/ui/app/components/modals/account-details-modal.js b/ui/app/components/modals/account-details-modal.js index 4bf671834..c1f7a3236 100644 --- a/ui/app/components/modals/account-details-modal.js +++ b/ui/app/components/modals/account-details-modal.js @@ -62,12 +62,12 @@ AccountDetailsModal.prototype.render = function () { h('div.account-modal-divider'), - h('button.btn-clear', { + h('button.btn-clear.account-modal__button', { onClick: () => global.platform.openWindow({ url: genAccountLink(address, network) }), }, 'View account on Etherscan'), // Holding on redesign for Export Private Key functionality - h('button.btn-clear', { + h('button.btn-clear.account-modal__button', { onClick: () => showExportPrivateKeyModal(), }, 'Export private key'), diff --git a/ui/app/components/modals/export-private-key-modal.js b/ui/app/components/modals/export-private-key-modal.js index 193755df5..422f23f44 100644 --- a/ui/app/components/modals/export-private-key-modal.js +++ b/ui/app/components/modals/export-private-key-modal.js @@ -79,11 +79,15 @@ ExportPrivateKeyModal.prototype.renderButton = function (className, onClick, lab ExportPrivateKeyModal.prototype.renderButtons = function (privateKey, password, address, hideModal) { return h('div.export-private-key-buttons', {}, [ - !privateKey && this.renderButton('btn-clear btn-cancel', () => hideModal(), 'Cancel'), + !privateKey && this.renderButton( + 'btn-cancel export-private-key__button export-private-key__button--cancel', + () => hideModal(), + 'Cancel' + ), (privateKey - ? this.renderButton('btn-clear', () => hideModal(), 'Done') - : this.renderButton('btn-clear', () => this.exportAccountAndGetPrivateKey(this.state.password, address), 'Show') + ? this.renderButton('btn-clear export-private-key__button', () => hideModal(), 'Done') + : this.renderButton('btn-clear export-private-key__button', () => this.exportAccountAndGetPrivateKey(this.state.password, address), 'Confirm') ), ]) |