diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-12-05 04:59:16 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 18:58:38 +0800 |
commit | 44312478fa589de2b47be4703fdd8133effcc7d9 (patch) | |
tree | 02554a8b51f5b0281352ed53ebe710c20fafb7d5 /packages/website | |
parent | 92f56c63acf5c50710b90e02b7f41d1ff131b105 (diff) | |
download | dexon-sol-tools-44312478fa589de2b47be4703fdd8133effcc7d9.tar dexon-sol-tools-44312478fa589de2b47be4703fdd8133effcc7d9.tar.gz dexon-sol-tools-44312478fa589de2b47be4703fdd8133effcc7d9.tar.bz2 dexon-sol-tools-44312478fa589de2b47be4703fdd8133effcc7d9.tar.lz dexon-sol-tools-44312478fa589de2b47be4703fdd8133effcc7d9.tar.xz dexon-sol-tools-44312478fa589de2b47be4703fdd8133effcc7d9.tar.zst dexon-sol-tools-44312478fa589de2b47be4703fdd8133effcc7d9.zip |
chore: fix linter issues
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/ts/pages/instant/config_generator.tsx | 3 | ||||
-rw-r--r-- | packages/website/ts/pages/instant/features.tsx | 1 | ||||
-rw-r--r-- | packages/website/ts/pages/instant/fee_percentage_slider.tsx | 11 |
3 files changed, 3 insertions, 12 deletions
diff --git a/packages/website/ts/pages/instant/config_generator.tsx b/packages/website/ts/pages/instant/config_generator.tsx index b320d2600..fe70ef04c 100644 --- a/packages/website/ts/pages/instant/config_generator.tsx +++ b/packages/website/ts/pages/instant/config_generator.tsx @@ -15,7 +15,6 @@ import { ConfigGeneratorAddressInput } from 'ts/pages/instant/config_generator_a import { FeePercentageSlider } from 'ts/pages/instant/fee_percentage_slider'; import { colors } from 'ts/style/colors'; import { WebsitePaths } from 'ts/types'; -import { backendClient } from 'ts/utils/backend_client'; import { constants } from 'ts/utils/constants'; import { assetMetaDataMap } from '../../../../instant/src/data/asset_meta_data_map'; @@ -39,10 +38,12 @@ export class ConfigGenerator extends React.Component<ConfigGeneratorProps, Confi isLoadingAvailableTokens: true, }; public componentDidMount(): void { + // tslint:disable-next-line:no-floating-promises this._setAvailableAssetsFromOrderProvider(); } public componentDidUpdate(prevProps: ConfigGeneratorProps): void { if (prevProps.value.orderSource !== this.props.value.orderSource) { + // tslint:disable-next-line:no-floating-promises this._setAvailableAssetsFromOrderProvider(); const newConfig: ZeroExInstantBaseConfig = { ...this.props.value, diff --git a/packages/website/ts/pages/instant/features.tsx b/packages/website/ts/pages/instant/features.tsx index 6c2656021..ed98ceb53 100644 --- a/packages/website/ts/pages/instant/features.tsx +++ b/packages/website/ts/pages/instant/features.tsx @@ -7,7 +7,6 @@ import { Text } from 'ts/components/ui/text'; import { ActionLink, ActionLinkProps } from 'ts/pages/instant/action_link'; import { colors } from 'ts/style/colors'; import { ScreenWidths, WebsitePaths } from 'ts/types'; -import { utils } from 'ts/utils/utils'; export interface FeatureProps { screenWidth: ScreenWidths; diff --git a/packages/website/ts/pages/instant/fee_percentage_slider.tsx b/packages/website/ts/pages/instant/fee_percentage_slider.tsx index e57319ed5..6256c6cb3 100644 --- a/packages/website/ts/pages/instant/fee_percentage_slider.tsx +++ b/packages/website/ts/pages/instant/fee_percentage_slider.tsx @@ -7,7 +7,7 @@ import { colors } from 'ts/style/colors'; import { injectGlobal, styled } from 'ts/style/theme'; const SliderWithTooltip = (Slider as any).createSliderWithTooltip(Slider); - +// tslint:disable-next-line:no-unused-expression injectGlobal` .rc-slider-tooltip-inner { box-shadow: none !important; @@ -24,7 +24,6 @@ injectGlobal` width: 0; position: absolute; pointer-events: none; - border-color: rgba(136, 183, 213, 0); border-width: 6px; bottom: 100%; left: 100%; @@ -34,14 +33,6 @@ injectGlobal` } `; -const StyledSlider = styled(SliderWithTooltip)` - .rc-slider-tooltip-inner { - background-color: ${colors.white}; - box-shadow: none; - padding: 3px; - } -`; - export interface FeePercentageSliderProps { value: number; onChange: (value: number) => void; |