diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-08-28 11:58:40 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-09-13 10:48:51 +0800 |
commit | 31089778ba3c97443e25bd3a7a901f45757894d9 (patch) | |
tree | 4bb099da7f7cbfe65a49f3a61d3000668d077e61 /ui/app/components/pages/create-account/import-account/private-key.js | |
parent | 930dac110aa9127380673e119b0eaab9d45b1198 (diff) | |
download | tangerine-wallet-browser-31089778ba3c97443e25bd3a7a901f45757894d9.tar.gz tangerine-wallet-browser-31089778ba3c97443e25bd3a7a901f45757894d9.tar.zst tangerine-wallet-browser-31089778ba3c97443e25bd3a7a901f45757894d9.zip |
Add raised type buttons to Button component. Refactor all buttons within app to Button components
Diffstat (limited to 'ui/app/components/pages/create-account/import-account/private-key.js')
-rw-r--r-- | ui/app/components/pages/create-account/import-account/private-key.js | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/ui/app/components/pages/create-account/import-account/private-key.js b/ui/app/components/pages/create-account/import-account/private-key.js index 1db999f2f..8db1bfbdd 100644 --- a/ui/app/components/pages/create-account/import-account/private-key.js +++ b/ui/app/components/pages/create-account/import-account/private-key.js @@ -7,6 +7,7 @@ const PropTypes = require('prop-types') const connect = require('react-redux').connect const actions = require('../../../../actions') const { DEFAULT_ROUTE } = require('../../../../routes') +import Button from '../../../button' PrivateKeyImportView.contextTypes = { t: PropTypes.func, @@ -61,20 +62,22 @@ PrivateKeyImportView.prototype.render = function () { h('div.new-account-import-form__buttons', {}, [ - h('button.btn-default.btn--large.new-account-create-form__button', { + h(Button, { + type: 'default', + large: true, + className: 'new-account-create-form__button', onClick: () => { displayWarning(null) this.props.history.push(DEFAULT_ROUTE) }, - }, [ - this.context.t('cancel'), - ]), + }, [this.context.t('cancel')]), - h('button.btn-primary.btn--large.new-account-create-form__button', { + h(Button, { + type: 'primary', + large: true, + className: 'new-account-create-form__button', onClick: () => this.createNewKeychain(), - }, [ - this.context.t('import'), - ]), + }, [this.context.t('import')]), ]), |