aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/shapeshift-form.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-08-28 11:58:40 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-09-13 10:48:51 +0800
commit31089778ba3c97443e25bd3a7a901f45757894d9 (patch)
tree4bb099da7f7cbfe65a49f3a61d3000668d077e61 /ui/app/components/shapeshift-form.js
parent930dac110aa9127380673e119b0eaab9d45b1198 (diff)
downloadtangerine-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/shapeshift-form.js')
-rw-r--r--ui/app/components/shapeshift-form.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/components/shapeshift-form.js b/ui/app/components/shapeshift-form.js
index 2c4ba40bf..a842bcc8b 100644
--- a/ui/app/components/shapeshift-form.js
+++ b/ui/app/components/shapeshift-form.js
@@ -9,6 +9,8 @@ const { shapeShiftSubview, pairUpdate, buyWithShapeShift } = require('../actions
const { isValidAddress } = require('../util')
const SimpleDropdown = require('./dropdowns/simple-dropdown')
+import Button from './button'
+
function mapStateToProps (state) {
const {
coinOptions,
@@ -242,8 +244,10 @@ ShapeshiftForm.prototype.render = function () {
]),
- !depositAddress && h('button.btn-primary.btn--large.shapeshift-form__shapeshift-buy-btn', {
- className: btnClass,
+ !depositAddress && h(Button, {
+ type: 'primary',
+ large: true,
+ className: `${btnClass} shapeshift-form__shapeshift-buy-btn`,
disabled: !token,
onClick: () => this.onBuyWithShapeShift(),
}, [this.context.t('buy')]),