aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-12-20 07:16:39 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-20 07:16:39 +0800
commite6f36938137fa7e2e48e1e97aed8bfa0c3c4aacd (patch)
tree44740e65dddfa6ef92ccd8425108f8c44c39aa61 /packages/website
parent531ed5496158ed318cc8313daa1a200f67b1b6dd (diff)
downloaddexon-sol-tools-e6f36938137fa7e2e48e1e97aed8bfa0c3c4aacd.tar
dexon-sol-tools-e6f36938137fa7e2e48e1e97aed8bfa0c3c4aacd.tar.gz
dexon-sol-tools-e6f36938137fa7e2e48e1e97aed8bfa0c3c4aacd.tar.bz2
dexon-sol-tools-e6f36938137fa7e2e48e1e97aed8bfa0c3c4aacd.tar.lz
dexon-sol-tools-e6f36938137fa7e2e48e1e97aed8bfa0c3c4aacd.tar.xz
dexon-sol-tools-e6f36938137fa7e2e48e1e97aed8bfa0c3c4aacd.tar.zst
dexon-sol-tools-e6f36938137fa7e2e48e1e97aed8bfa0c3c4aacd.zip
Disable fee slider when no address is put in
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/@next/pages/instant/fee_percentage_slider.tsx1
-rw-r--r--packages/website/ts/@next/pages/instant/rc-slider.css2
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 {