From 179f093c2609b4d453db7ed2eeed780d9c89e941 Mon Sep 17 00:00:00 2001 From: fragosti Date: Wed, 5 Dec 2018 23:33:04 -0800 Subject: feat: disable slider when no affiliate info --- packages/website/ts/pages/instant/config_generator.tsx | 5 +++++ packages/website/ts/pages/instant/fee_percentage_slider.tsx | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'packages/website') diff --git a/packages/website/ts/pages/instant/config_generator.tsx b/packages/website/ts/pages/instant/config_generator.tsx index fe70ef04c..fbeeeaeaf 100644 --- a/packages/website/ts/pages/instant/config_generator.tsx +++ b/packages/website/ts/pages/instant/config_generator.tsx @@ -79,6 +79,11 @@ export class ConfigGenerator extends React.Component diff --git a/packages/website/ts/pages/instant/fee_percentage_slider.tsx b/packages/website/ts/pages/instant/fee_percentage_slider.tsx index 4c92883cb..d76cee58f 100644 --- a/packages/website/ts/pages/instant/fee_percentage_slider.tsx +++ b/packages/website/ts/pages/instant/fee_percentage_slider.tsx @@ -31,10 +31,14 @@ injectGlobal` margin-left: -60%; } } + .rc-slider-disabled { + background-color: inherit !important; + } `; export interface FeePercentageSliderProps { value: number; + isDisabled: boolean; onChange: (value: number) => void; } @@ -42,6 +46,7 @@ export class FeePercentageSlider extends React.Component