diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-11-08 15:36:00 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-11-08 15:41:25 +0800 |
commit | cde192df0d48bb45f57c319179dbd9f64abd13e9 (patch) | |
tree | 010893e4f4e993e668d26bf049a446a27e4a48fc /packages/instant/src/components/buy_order_state_buttons.tsx | |
parent | d0c009adff53d94414cf51028eff490e0452a3c9 (diff) | |
download | dexon-sol-tools-cde192df0d48bb45f57c319179dbd9f64abd13e9.tar dexon-sol-tools-cde192df0d48bb45f57c319179dbd9f64abd13e9.tar.gz dexon-sol-tools-cde192df0d48bb45f57c319179dbd9f64abd13e9.tar.bz2 dexon-sol-tools-cde192df0d48bb45f57c319179dbd9f64abd13e9.tar.lz dexon-sol-tools-cde192df0d48bb45f57c319179dbd9f64abd13e9.tar.xz dexon-sol-tools-cde192df0d48bb45f57c319179dbd9f64abd13e9.tar.zst dexon-sol-tools-cde192df0d48bb45f57c319179dbd9f64abd13e9.zip |
feat(instant): fetch balance at startup
Diffstat (limited to 'packages/instant/src/components/buy_order_state_buttons.tsx')
-rw-r--r-- | packages/instant/src/components/buy_order_state_buttons.tsx | 6 |
1 files changed, 6 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 b15415e71..b46ff7714 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'; @@ -14,9 +16,11 @@ import { Text } from './ui/text'; export interface BuyOrderStateButtonProps { accountAddress?: string; + accountEthBalanceInWei?: BigNumber; buyQuote?: BuyQuote; buyOrderProcessingState: OrderProcessState; assetBuyer: AssetBuyer; + web3Wrapper: Web3Wrapper; affiliateInfo?: AffiliateInfo; onViewTransaction: () => void; onValidationPending: (buyQuote: BuyQuote) => void; @@ -54,8 +58,10 @@ 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} |