chore: run linter

This commit is contained in:
fragosti
2018-10-22 17:56:50 -07:00
parent 28f0deb3eb
commit b7a5e40c62
4 changed files with 2 additions and 11 deletions

View File

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

View File

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

View File

@@ -1,4 +1,3 @@
import * as React from 'react';
import { ColorOption, styled } from '../../style/theme';
import { cssRuleIfExists } from '../../style/util';

View File

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