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/customize-gas-modal | |
parent | 930dac110aa9127380673e119b0eaab9d45b1198 (diff) | |
download | tangerine-wallet-browser-31089778ba3c97443e25bd3a7a901f45757894d9.tar tangerine-wallet-browser-31089778ba3c97443e25bd3a7a901f45757894d9.tar.gz tangerine-wallet-browser-31089778ba3c97443e25bd3a7a901f45757894d9.tar.bz2 tangerine-wallet-browser-31089778ba3c97443e25bd3a7a901f45757894d9.tar.lz tangerine-wallet-browser-31089778ba3c97443e25bd3a7a901f45757894d9.tar.xz 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/customize-gas-modal')
-rw-r--r-- | ui/app/components/customize-gas-modal/index.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/ui/app/components/customize-gas-modal/index.js b/ui/app/components/customize-gas-modal/index.js index c255fd64d..e67fbe45b 100644 --- a/ui/app/components/customize-gas-modal/index.js +++ b/ui/app/components/customize-gas-modal/index.js @@ -5,6 +5,7 @@ const inherits = require('util').inherits const connect = require('react-redux').connect const actions = require('../../actions') const GasModalCard = require('./gas-modal-card') +import Button from '../button' const ethUtil = require('ethereumjs-util') @@ -353,16 +354,16 @@ CustomizeGasModal.prototype.render = function () { }, [this.context.t('revert')]), h('div.send-v2__customize-gas__buttons', [ - h('button.btn-default.send-v2__customize-gas__cancel', { + h(Button, { + type: 'default', + className: 'send-v2__customize-gas__cancel', onClick: this.props.hideModal, - style: { - marginRight: '10px', - }, }, [this.context.t('cancel')]), - - h('button.btn-primary.send-v2__customize-gas__save', { + h(Button, { + type: 'primary', + className: 'send-v2__customize-gas__save', onClick: () => !error && this.save(newGasPrice, gasLimit, gasTotal), - className: error && 'btn-primary--disabled', + disabled: error, }, [this.context.t('save')]), ]), |