aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-23 08:56:50 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-23 08:56:50 +0800
commitb7a5e40c62adfbd8732b3cd98d2c989a6a021c54 (patch)
tree06f4fdc8f3770260494d18bf2e0be99c9b62111c
parent28f0deb3ebe2f78f98e79d59b8b2a3eacb1c6fef (diff)
downloaddexon-sol-tools-b7a5e40c62adfbd8732b3cd98d2c989a6a021c54.tar
dexon-sol-tools-b7a5e40c62adfbd8732b3cd98d2c989a6a021c54.tar.gz
dexon-sol-tools-b7a5e40c62adfbd8732b3cd98d2c989a6a021c54.tar.bz2
dexon-sol-tools-b7a5e40c62adfbd8732b3cd98d2c989a6a021c54.tar.lz
dexon-sol-tools-b7a5e40c62adfbd8732b3cd98d2c989a6a021c54.tar.xz
dexon-sol-tools-b7a5e40c62adfbd8732b3cd98d2c989a6a021c54.tar.zst
dexon-sol-tools-b7a5e40c62adfbd8732b3cd98d2c989a6a021c54.zip
chore: run linter
-rw-r--r--packages/instant/src/components/scaling_amount_input.tsx1
-rw-r--r--packages/instant/src/components/scaling_input.tsx6
-rw-r--r--packages/instant/src/components/ui/container.tsx1
-rw-r--r--packages/instant/src/components/ui/flex.tsx5
4 files changed, 2 insertions, 11 deletions
diff --git a/packages/instant/src/components/scaling_amount_input.tsx b/packages/instant/src/components/scaling_amount_input.tsx
index 83375af00..9539bfd94 100644
--- a/packages/instant/src/components/scaling_amount_input.tsx
+++ b/packages/instant/src/components/scaling_amount_input.tsx
@@ -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;
diff --git a/packages/instant/src/components/scaling_input.tsx b/packages/instant/src/components/scaling_input.tsx
index 57ebf93ac..10243787a 100644
--- a/packages/instant/src/components/scaling_input.tsx
+++ b/packages/instant/src/components/scaling_input.tsx
@@ -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;
diff --git a/packages/instant/src/components/ui/container.tsx b/packages/instant/src/components/ui/container.tsx
index b7e17d807..8b204826d 100644
--- a/packages/instant/src/components/ui/container.tsx
+++ b/packages/instant/src/components/ui/container.tsx
@@ -1,4 +1,3 @@
-import * as React from 'react';
import { ColorOption, styled } from '../../style/theme';
import { cssRuleIfExists } from '../../style/util';
diff --git a/packages/instant/src/components/ui/flex.tsx b/packages/instant/src/components/ui/flex.tsx
index f2013f60f..2b430129d 100644
--- a/packages/instant/src/components/ui/flex.tsx
+++ b/packages/instant/src/components/ui/flex.tsx
@@ -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};