|
|
@ -14,11 +14,13 @@ function mapStateToProps (state) { |
|
|
|
tokenExchangeRates, |
|
|
|
tokenExchangeRates, |
|
|
|
selectedAddress, |
|
|
|
selectedAddress, |
|
|
|
} = state.metamask |
|
|
|
} = state.metamask |
|
|
|
|
|
|
|
const { warning } = state.appState |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
coinOptions, |
|
|
|
coinOptions, |
|
|
|
tokenExchangeRates, |
|
|
|
tokenExchangeRates, |
|
|
|
selectedAddress, |
|
|
|
selectedAddress, |
|
|
|
|
|
|
|
warning, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -163,7 +165,7 @@ ShapeshiftForm.prototype.renderQrCode = function () { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ShapeshiftForm.prototype.render = function () { |
|
|
|
ShapeshiftForm.prototype.render = function () { |
|
|
|
const { coinOptions, btnClass } = this.props |
|
|
|
const { coinOptions, btnClass, warning } = this.props |
|
|
|
const { depositCoin, errorMessage, showQrCode, depositAddress } = this.state |
|
|
|
const { depositCoin, errorMessage, showQrCode, depositAddress } = this.state |
|
|
|
const coinPair = `${depositCoin}_eth` |
|
|
|
const coinPair = `${depositCoin}_eth` |
|
|
|
const { tokenExchangeRates } = this.props |
|
|
|
const { tokenExchangeRates } = this.props |
|
|
@ -206,7 +208,9 @@ ShapeshiftForm.prototype.render = function () { |
|
|
|
|
|
|
|
|
|
|
|
]), |
|
|
|
]), |
|
|
|
|
|
|
|
|
|
|
|
h('div', { |
|
|
|
warning && h('div.shapeshift-form__address-input-label', warning), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
!warning && h('div', { |
|
|
|
className: classnames('shapeshift-form__address-input-wrapper', { |
|
|
|
className: classnames('shapeshift-form__address-input-wrapper', { |
|
|
|
'shapeshift-form__address-input-wrapper--error': errorMessage, |
|
|
|
'shapeshift-form__address-input-wrapper--error': errorMessage, |
|
|
|
}), |
|
|
|
}), |
|
|
@ -227,7 +231,7 @@ ShapeshiftForm.prototype.render = function () { |
|
|
|
h('divshapeshift-form__address-input-error-message', [errorMessage]), |
|
|
|
h('divshapeshift-form__address-input-error-message', [errorMessage]), |
|
|
|
]), |
|
|
|
]), |
|
|
|
|
|
|
|
|
|
|
|
this.renderMarketInfo(), |
|
|
|
!warning && this.renderMarketInfo(), |
|
|
|
|
|
|
|
|
|
|
|
]), |
|
|
|
]), |
|
|
|
|
|
|
|
|
|
|
|