diff options
author | Fred Carlsen <fred@sjelfull.no> | 2018-12-20 07:16:39 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-20 07:16:39 +0800 |
commit | e6f36938137fa7e2e48e1e97aed8bfa0c3c4aacd (patch) | |
tree | 44740e65dddfa6ef92ccd8425108f8c44c39aa61 | |
parent | 531ed5496158ed318cc8313daa1a200f67b1b6dd (diff) | |
download | dexon-sol-tools-e6f36938137fa7e2e48e1e97aed8bfa0c3c4aacd.tar.gz dexon-sol-tools-e6f36938137fa7e2e48e1e97aed8bfa0c3c4aacd.tar.zst dexon-sol-tools-e6f36938137fa7e2e48e1e97aed8bfa0c3c4aacd.zip |
Disable fee slider when no address is put in
-rw-r--r-- | packages/website/ts/@next/pages/instant/fee_percentage_slider.tsx | 1 | ||||
-rw-r--r-- | packages/website/ts/@next/pages/instant/rc-slider.css | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/packages/website/ts/@next/pages/instant/fee_percentage_slider.tsx b/packages/website/ts/@next/pages/instant/fee_percentage_slider.tsx index e9f8ba83b..5775d6dfb 100644 --- a/packages/website/ts/@next/pages/instant/fee_percentage_slider.tsx +++ b/packages/website/ts/@next/pages/instant/fee_percentage_slider.tsx @@ -22,6 +22,7 @@ export class FeePercentageSlider extends React.Component<FeePercentageSliderProp max={0.05} step={0.0025} value={this.props.value} + disabled={this.props.isDisabled} onChange={this.props.onChange} tipFormatter={this._feePercentageSliderFormatter} tipProps={{ placement: 'bottom', overlayStyle: { backgroundColor: '#fff', borderRadius: '4px' } }} diff --git a/packages/website/ts/@next/pages/instant/rc-slider.css b/packages/website/ts/@next/pages/instant/rc-slider.css index a4a521d54..63038324e 100644 --- a/packages/website/ts/@next/pages/instant/rc-slider.css +++ b/packages/website/ts/@next/pages/instant/rc-slider.css @@ -115,7 +115,7 @@ } .rc-slider-disabled { - background-color: #e9e9e9; + opacity: 0.2; } .rc-slider-disabled .rc-slider-track { |