diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-09 07:39:30 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-09 07:39:30 +0800 |
commit | 6a84877f9aab63db1c493d1a3d73d06e65735a78 (patch) | |
tree | f997069ff2acd9dd5a75bee3d36c9a6b1cf95a23 /packages/instant | |
parent | b074fe2de57b07ffd9d1da373cfb0828ff8a9d5b (diff) | |
download | dexon-0x-contracts-6a84877f9aab63db1c493d1a3d73d06e65735a78.tar dexon-0x-contracts-6a84877f9aab63db1c493d1a3d73d06e65735a78.tar.gz dexon-0x-contracts-6a84877f9aab63db1c493d1a3d73d06e65735a78.tar.bz2 dexon-0x-contracts-6a84877f9aab63db1c493d1a3d73d06e65735a78.tar.lz dexon-0x-contracts-6a84877f9aab63db1c493d1a3d73d06e65735a78.tar.xz dexon-0x-contracts-6a84877f9aab63db1c493d1a3d73d06e65735a78.tar.zst dexon-0x-contracts-6a84877f9aab63db1c493d1a3d73d06e65735a78.zip |
fix: remove default props, fix lint problems
Diffstat (limited to 'packages/instant')
3 files changed, 7 insertions, 8 deletions
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<PaymentMethodProps> = () => </Flex> </Flex> </Container> - <PaymentMethodDropdown /> + <PaymentMethodDropdown + selectedEthAddress="0xa1b2c3d4e5f6g7h8j9k10" + addressEthBaseAmount={new BigNumber(10500000000000000000)} + network={Network.Mainnet} + /> </Container> ); 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<PaymentMethodDropdownProps> { - 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<ZeroExInstantContain <Flex direction="column" justify="flex-start" height="100%"> <SelectedAssetInstantHeading onSelectAssetClick={this._handleSymbolClick} /> <SelectedAssetBuyOrderProgress /> - <PaymentMethod /> <LatestBuyQuoteOrderDetails /> <Container padding="20px" width="100%"> <SelectedAssetBuyOrderStateButtons /> |