fix: remove default props, fix lint problems
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user