From d7b6d8222f459942f82338fee752d03fe2d1547a Mon Sep 17 00:00:00 2001 From: fragosti Date: Thu, 4 Oct 2018 19:32:33 -0700 Subject: Apply linter --- packages/instant/src/components/amount_input.tsx | 6 +++--- packages/instant/src/components/instant_heading.tsx | 1 - packages/instant/src/components/ui/input.tsx | 2 -- packages/instant/src/components/zero_ex_instant_container.tsx | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) (limited to 'packages/instant/src/components') diff --git a/packages/instant/src/components/amount_input.tsx b/packages/instant/src/components/amount_input.tsx index 8fead78ca..2b64469f6 100644 --- a/packages/instant/src/components/amount_input.tsx +++ b/packages/instant/src/components/amount_input.tsx @@ -4,7 +4,7 @@ import * as React from 'react'; import { ColorOption } from '../style/theme'; -import { Container, Flex, Input, Text } from './ui'; +import { Container, Input } from './ui'; export interface AmountInputProps { fontColor?: ColorOption; @@ -29,10 +29,10 @@ export class AmountInput extends React.Component { ); } - private _handleChange = (event: React.ChangeEvent): void => { + private readonly _handleChange = (event: React.ChangeEvent): void => { const bigNumberValue = new BigNumber(event.target.value); if (!_.isUndefined(this.props.onChange)) { this.props.onChange(bigNumberValue); } - }; + } } diff --git a/packages/instant/src/components/instant_heading.tsx b/packages/instant/src/components/instant_heading.tsx index 2b07ef666..be0414b8d 100644 --- a/packages/instant/src/components/instant_heading.tsx +++ b/packages/instant/src/components/instant_heading.tsx @@ -1,4 +1,3 @@ -import { BigNumber } from '@0xproject/utils'; import * as React from 'react'; import { SelectedAssetAmountInput } from '../containers/selected_asset_amount_input'; diff --git a/packages/instant/src/components/ui/input.tsx b/packages/instant/src/components/ui/input.tsx index fc4fed14e..f8c6b6ef6 100644 --- a/packages/instant/src/components/ui/input.tsx +++ b/packages/instant/src/components/ui/input.tsx @@ -2,8 +2,6 @@ import * as React from 'react'; import { ColorOption, styled } from '../../style/theme'; -import { Container, Flex, Text } from '../ui'; - export interface InputProps { className?: string; value?: string; diff --git a/packages/instant/src/components/zero_ex_instant_container.tsx b/packages/instant/src/components/zero_ex_instant_container.tsx index 6075a5b21..716227b51 100644 --- a/packages/instant/src/components/zero_ex_instant_container.tsx +++ b/packages/instant/src/components/zero_ex_instant_container.tsx @@ -5,7 +5,7 @@ import { ColorOption } from '../style/theme'; import { BuyButton } from './buy_button'; import { InstantHeading } from './instant_heading'; import { OrderDetails } from './order_details'; -import { Container, Flex, Text } from './ui'; +import { Container, Flex } from './ui'; export interface ZeroExInstantContainerProps {} -- cgit v1.2.3