aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/buy_order_state_buttons.tsx
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2018-11-09 09:35:54 +0800
committerGitHub <noreply@github.com>2018-11-09 09:35:54 +0800
commit12bc6f5d5816a3c1c5ed03b23ce67a1be4e72f39 (patch)
treef45b60fa2792667d7891ea6ae93e8a74f27567bc /packages/instant/src/components/buy_order_state_buttons.tsx
parentca6f99da6158102f007c1c9b24fcba72c12beb3c (diff)
parentb147cd888505443981781d200a68b949812cb3e9 (diff)
downloaddexon-0x-contracts-12bc6f5d5816a3c1c5ed03b23ce67a1be4e72f39.tar
dexon-0x-contracts-12bc6f5d5816a3c1c5ed03b23ce67a1be4e72f39.tar.gz
dexon-0x-contracts-12bc6f5d5816a3c1c5ed03b23ce67a1be4e72f39.tar.bz2
dexon-0x-contracts-12bc6f5d5816a3c1c5ed03b23ce67a1be4e72f39.tar.lz
dexon-0x-contracts-12bc6f5d5816a3c1c5ed03b23ce67a1be4e72f39.tar.xz
dexon-0x-contracts-12bc6f5d5816a3c1c5ed03b23ce67a1be4e72f39.tar.zst
dexon-0x-contracts-12bc6f5d5816a3c1c5ed03b23ce67a1be4e72f39.zip
Merge pull request #1232 from 0xProject/feature/instant/account-state-change
[instant] Request account address and balance at mount
Diffstat (limited to 'packages/instant/src/components/buy_order_state_buttons.tsx')
-rw-r--r--packages/instant/src/components/buy_order_state_buttons.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/instant/src/components/buy_order_state_buttons.tsx b/packages/instant/src/components/buy_order_state_buttons.tsx
index bdac25cf2..6041bf4f5 100644
--- a/packages/instant/src/components/buy_order_state_buttons.tsx
+++ b/packages/instant/src/components/buy_order_state_buttons.tsx
@@ -1,4 +1,6 @@
import { AssetBuyer, AssetBuyerError, BuyQuote } from '@0x/asset-buyer';
+import { BigNumber } from '@0x/utils';
+import { Web3Wrapper } from '@0x/web3-wrapper';
import * as React from 'react';
import { ColorOption } from '../style/theme';
@@ -12,9 +14,12 @@ import { Button } from './ui/button';
import { Flex } from './ui/flex';
export interface BuyOrderStateButtonProps {
+ accountAddress?: string;
+ accountEthBalanceInWei?: BigNumber;
buyQuote?: BuyQuote;
buyOrderProcessingState: OrderProcessState;
assetBuyer: AssetBuyer;
+ web3Wrapper: Web3Wrapper;
affiliateInfo?: AffiliateInfo;
onViewTransaction: () => void;
onValidationPending: (buyQuote: BuyQuote) => void;
@@ -49,8 +54,11 @@ export const BuyOrderStateButtons: React.StatelessComponent<BuyOrderStateButtonP
return (
<BuyButton
+ accountAddress={props.accountAddress}
+ accountEthBalanceInWei={props.accountEthBalanceInWei}
buyQuote={props.buyQuote}
assetBuyer={props.assetBuyer}
+ web3Wrapper={props.web3Wrapper}
affiliateInfo={props.affiliateInfo}
onValidationPending={props.onValidationPending}
onValidationFail={props.onValidationFail}