chore: fix linter issues
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user