From 6a84877f9aab63db1c493d1a3d73d06e65735a78 Mon Sep 17 00:00:00 2001 From: fragosti Date: Thu, 8 Nov 2018 15:39:30 -0800 Subject: fix: remove default props, fix lint problems --- packages/instant/src/components/payment_method.tsx | 8 +++++++- packages/instant/src/components/payment_method_dropdown.tsx | 5 ----- packages/instant/src/components/zero_ex_instant_container.tsx | 2 -- 3 files changed, 7 insertions(+), 8 deletions(-) (limited to 'packages/instant') diff --git a/packages/instant/src/components/payment_method.tsx b/packages/instant/src/components/payment_method.tsx index 491a0bd45..a96c6297c 100644 --- a/packages/instant/src/components/payment_method.tsx +++ b/packages/instant/src/components/payment_method.tsx @@ -1,7 +1,9 @@ +import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; import * as React from 'react'; import { ColorOption } from '../style/theme'; +import { Network } from '../types'; import { PaymentMethodDropdown } from './payment_method_dropdown'; import { Circle } from './ui/circle'; @@ -34,6 +36,10 @@ export const PaymentMethod: React.StatelessComponent = () => - + ); diff --git a/packages/instant/src/components/payment_method_dropdown.tsx b/packages/instant/src/components/payment_method_dropdown.tsx index d1586f2c7..6f3634301 100644 --- a/packages/instant/src/components/payment_method_dropdown.tsx +++ b/packages/instant/src/components/payment_method_dropdown.tsx @@ -15,11 +15,6 @@ export interface PaymentMethodDropdownProps { } export class PaymentMethodDropdown extends React.Component { - public static defaultProps = { - selectedEthAddress: '0xa1b2c3d4e5f6g7h8j9k10', - addressEthBaseAmount: new BigNumber(10500000000000000000), - network: Network.Mainnet, - }; public render(): React.ReactNode { const { selectedEthAddress, addressEthBaseAmount } = this.props; const value = format.ethAddress(selectedEthAddress); diff --git a/packages/instant/src/components/zero_ex_instant_container.tsx b/packages/instant/src/components/zero_ex_instant_container.tsx index 575093c46..2d3a1f4a8 100644 --- a/packages/instant/src/components/zero_ex_instant_container.tsx +++ b/packages/instant/src/components/zero_ex_instant_container.tsx @@ -11,7 +11,6 @@ import { zIndex } from '../style/z_index'; import { SlideAnimationState } from './animations/slide_animation'; import { CSSReset } from './css_reset'; -import { PaymentMethod } from './payment_method'; import { SlidingPanel } from './sliding_panel'; import { Container } from './ui/container'; import { Flex } from './ui/flex'; @@ -49,7 +48,6 @@ export class ZeroExInstantContainer extends React.Component - -- cgit