chore: run linter
This commit is contained in:
@@ -6,7 +6,6 @@ import { ColorOption } from '../style/theme';
|
||||
import { util } from '../util/util';
|
||||
|
||||
import { ScalingInput } from './scaling_input';
|
||||
import { Container, Text } from './ui';
|
||||
|
||||
export interface ScalingAmountInputProps {
|
||||
maxFontSizePx: number;
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
import { BigNumber } from '@0x/utils';
|
||||
import * as _ from 'lodash';
|
||||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
|
||||
import { ColorOption } from '../style/theme';
|
||||
import { util } from '../util/util';
|
||||
|
||||
import { Container, Input } from './ui';
|
||||
import { Input } from './ui';
|
||||
|
||||
export enum ScalingInputPhase {
|
||||
Start,
|
||||
@@ -44,7 +42,7 @@ export class ScalingInput extends React.Component<ScalingInputProps, ScalingInpu
|
||||
public state = {
|
||||
fixedWidthInPxIfExists: undefined,
|
||||
};
|
||||
private _inputRef = React.createRef();
|
||||
private readonly _inputRef = React.createRef();
|
||||
public static getPhase(startWidthCh: number, endWidthCh: number, value?: string): ScalingInputPhase {
|
||||
if (_.isUndefined(value) || value.length <= startWidthCh) {
|
||||
return ScalingInputPhase.Start;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import * as React from 'react';
|
||||
|
||||
import { ColorOption, styled } from '../../style/theme';
|
||||
import { cssRuleIfExists } from '../../style/util';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import * as React from 'react';
|
||||
|
||||
import { ColorOption, styled } from '../../style/theme';
|
||||
import { cssRuleIfExists } from '../../style/util';
|
||||
@@ -13,10 +12,6 @@ export interface FlexProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const PlainFlex: React.StatelessComponent<FlexProps> = ({ children, className }) => (
|
||||
<div className={className}>{children}</div>
|
||||
);
|
||||
|
||||
export const Flex = styled<FlexProps, 'div'>('div')`
|
||||
display: flex;
|
||||
flex-direction: ${props => props.direction};
|
||||
|
||||
Reference in New Issue
Block a user