aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/pages/instant
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-12-14 18:26:59 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-14 18:34:14 +0800
commit66480ccb1e0dc72e6716060ab472b7584bfa910c (patch)
treeae43b6ac036cbf7d956f9da02a14e43af301b854 /packages/website/ts/@next/pages/instant
parent7a10f034960b0cbb0d39b2680e69f58e5c19ea61 (diff)
downloaddexon-sol-tools-66480ccb1e0dc72e6716060ab472b7584bfa910c.tar.gz
dexon-sol-tools-66480ccb1e0dc72e6716060ab472b7584bfa910c.tar.zst
dexon-sol-tools-66480ccb1e0dc72e6716060ab472b7584bfa910c.zip
Linting fixes
Diffstat (limited to 'packages/website/ts/@next/pages/instant')
-rw-r--r--packages/website/ts/@next/pages/instant/config_generator.tsx10
-rw-r--r--packages/website/ts/@next/pages/instant/fee_percentage_slider.tsx1
2 files changed, 8 insertions, 3 deletions
diff --git a/packages/website/ts/@next/pages/instant/config_generator.tsx b/packages/website/ts/@next/pages/instant/config_generator.tsx
index d63ea118b..c71d2b238 100644
--- a/packages/website/ts/@next/pages/instant/config_generator.tsx
+++ b/packages/website/ts/@next/pages/instant/config_generator.tsx
@@ -6,13 +6,13 @@ import * as _ from 'lodash';
import * as React from 'react';
import styled from 'styled-components';
+import { ConfigGeneratorAddressInput } from 'ts/@next/pages/instant/config_generator_address_input';
+import { FeePercentageSlider } from 'ts/@next/pages/instant/fee_percentage_slider';
import { CheckMark } from 'ts/components/ui/check_mark';
import { Container } from 'ts/components/ui/container';
import { MultiSelect } from 'ts/components/ui/multi_select';
import { Spinner } from 'ts/components/ui/spinner';
import { Text } from 'ts/components/ui/text';
-import { ConfigGeneratorAddressInput } from 'ts/@next/pages/instant/config_generator_address_input';
-import { FeePercentageSlider } from 'ts/@next/pages/instant/fee_percentage_slider';
import { colors } from 'ts/style/colors';
import { WebsitePaths } from 'ts/types';
import { constants } from 'ts/utils/constants';
@@ -314,7 +314,11 @@ const OptionalText = styled.span`
flex-shrink: 0;
`;
-const CheckboxText = styled.span`
+interface CheckboxTextProps {
+ isSelected?: boolean;
+}
+
+const CheckboxText = styled.span<CheckboxTextProps>`
font-size: 14px;
line-height: 18px;
color: ${props => props.isSelected ? colors.brandDark : '#666666'}
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 47b8d2b8f..512ae06b4 100644
--- a/packages/website/ts/@next/pages/instant/fee_percentage_slider.tsx
+++ b/packages/website/ts/@next/pages/instant/fee_percentage_slider.tsx
@@ -10,6 +10,7 @@ const SliderWithTooltip = (Slider as any).createSliderWithTooltip(Slider);
export interface FeePercentageSliderProps {
value: number;
+ isDisabled?: boolean;
onChange: (value: number) => void;
}