diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-23 08:56:50 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-23 08:56:50 +0800 |
commit | b7a5e40c62adfbd8732b3cd98d2c989a6a021c54 (patch) | |
tree | 06f4fdc8f3770260494d18bf2e0be99c9b62111c /packages/instant/src/components/scaling_input.tsx | |
parent | 28f0deb3ebe2f78f98e79d59b8b2a3eacb1c6fef (diff) | |
download | dexon-0x-contracts-b7a5e40c62adfbd8732b3cd98d2c989a6a021c54.tar dexon-0x-contracts-b7a5e40c62adfbd8732b3cd98d2c989a6a021c54.tar.gz dexon-0x-contracts-b7a5e40c62adfbd8732b3cd98d2c989a6a021c54.tar.bz2 dexon-0x-contracts-b7a5e40c62adfbd8732b3cd98d2c989a6a021c54.tar.lz dexon-0x-contracts-b7a5e40c62adfbd8732b3cd98d2c989a6a021c54.tar.xz dexon-0x-contracts-b7a5e40c62adfbd8732b3cd98d2c989a6a021c54.tar.zst dexon-0x-contracts-b7a5e40c62adfbd8732b3cd98d2c989a6a021c54.zip |
chore: run linter
Diffstat (limited to 'packages/instant/src/components/scaling_input.tsx')
-rw-r--r-- | packages/instant/src/components/scaling_input.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
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; |