aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/instant/src')
-rw-r--r--packages/instant/src/components/payment_method.tsx8
-rw-r--r--packages/instant/src/components/payment_method_dropdown.tsx5
-rw-r--r--packages/instant/src/components/zero_ex_instant_container.tsx2
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 />