Browse Source

Merge pull request #24 from SuperNETorg/v0.25

V0.25
v0.25
pbca26 7 years ago
committed by GitHub
parent
commit
684e2a6e24
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      react/src/components/dashboard/sendCoin/sendCoin.js

9
react/src/components/dashboard/sendCoin/sendCoin.js

@ -441,7 +441,6 @@ class SendCoin extends React.Component {
} else {
// TODO: fallback to local electrum
}
console.warn('btcfees', res);
});
}
}
@ -677,8 +676,6 @@ class SendCoin extends React.Component {
}
onSliderChange(value) {
console.warn(value);
console.warn(`btc fee /byte ${this.state.btcFees.electrum[value]}`);
this.setState({
btcFeesSize: this.state.btcFees.electrum[value],
btcFeesAdvancedStep: value,
@ -686,10 +683,8 @@ class SendCoin extends React.Component {
}
onSliderChangeTime(value) {
console.warn(value);
console.warn(`btc fee /byte ${_feeLookup[value]}`);
this.setState({
btcFeesSize: this.state.btcFees.recommended[_feeLookup[value]],
btcFeesSize: _feeLookup[value] === 'advanced' ? this.state.btcFees.electrum[this.state.btcFeesAdvancedStep] : this.state.btcFees.recommended[_feeLookup[value]],
btcFeesTimeBasedStep: value,
btcFeesType: _feeLookup[value] === 'advanced' ? 'advanced' : null,
});
@ -754,7 +749,7 @@ class SendCoin extends React.Component {
3: 'advanced'
}} />
{ this.state.btcFeesType === 'advanced' &&
<div>
<div className="margin-bottom-20">
<div className="send-target-block">Estimated to be included within the next <strong>{this.state.btcFeesAdvancedStep + 1} {(this.state.btcFeesAdvancedStep + 1) > 1 ? 'blocks' : 'block'}</strong></div>
<Slider
onChange={ this.onSliderChange }

Loading…
Cancel
Save