aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-12-05 04:59:16 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-12-05 04:59:16 +0800
commit01e1e5ac3b5ae970ade80efb5e71212ddb33eb93 (patch)
treecfb08aef0a979a45ede7bdfa458c22cadc72c474 /packages/website/ts
parentcb9f7a06646014511591bfb110c9013bb40ea667 (diff)
downloaddexon-sol-tools-01e1e5ac3b5ae970ade80efb5e71212ddb33eb93.tar
dexon-sol-tools-01e1e5ac3b5ae970ade80efb5e71212ddb33eb93.tar.gz
dexon-sol-tools-01e1e5ac3b5ae970ade80efb5e71212ddb33eb93.tar.bz2
dexon-sol-tools-01e1e5ac3b5ae970ade80efb5e71212ddb33eb93.tar.lz
dexon-sol-tools-01e1e5ac3b5ae970ade80efb5e71212ddb33eb93.tar.xz
dexon-sol-tools-01e1e5ac3b5ae970ade80efb5e71212ddb33eb93.tar.zst
dexon-sol-tools-01e1e5ac3b5ae970ade80efb5e71212ddb33eb93.zip
chore: fix linter issues
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/pages/instant/config_generator.tsx3
-rw-r--r--packages/website/ts/pages/instant/features.tsx1
-rw-r--r--packages/website/ts/pages/instant/fee_percentage_slider.tsx11
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;