chore: fix linter issues

This commit is contained in:
fragosti
2018-12-04 12:59:16 -08:00
parent cb9f7a0664
commit 01e1e5ac3b
3 changed files with 3 additions and 12 deletions

View File

@@ -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,

View File

@@ -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;

View File

@@ -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;