diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-12-01 16:22:09 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-12-01 16:22:09 +0800 |
commit | 074944247dfdcd91fb7acbe064ccf3c3d2139ddc (patch) | |
tree | 88c0936acb96d93a2bb54ddde6ba11d87f2a8eea /packages/instant/src/components/buy_order_state_buttons.tsx | |
parent | 593ed12d91e2e3c3f6d6feda2468b20a1fb364ac (diff) | |
download | dexon-sol-tools-074944247dfdcd91fb7acbe064ccf3c3d2139ddc.tar dexon-sol-tools-074944247dfdcd91fb7acbe064ccf3c3d2139ddc.tar.gz dexon-sol-tools-074944247dfdcd91fb7acbe064ccf3c3d2139ddc.tar.bz2 dexon-sol-tools-074944247dfdcd91fb7acbe064ccf3c3d2139ddc.tar.lz dexon-sol-tools-074944247dfdcd91fb7acbe064ccf3c3d2139ddc.tar.xz dexon-sol-tools-074944247dfdcd91fb7acbe064ccf3c3d2139ddc.tar.zst dexon-sol-tools-074944247dfdcd91fb7acbe064ccf3c3d2139ddc.zip |
feat(instant): add token symbol to buy button text
Diffstat (limited to 'packages/instant/src/components/buy_order_state_buttons.tsx')
-rw-r--r-- | packages/instant/src/components/buy_order_state_buttons.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/instant/src/components/buy_order_state_buttons.tsx b/packages/instant/src/components/buy_order_state_buttons.tsx index e563bec73..833818900 100644 --- a/packages/instant/src/components/buy_order_state_buttons.tsx +++ b/packages/instant/src/components/buy_order_state_buttons.tsx @@ -4,7 +4,7 @@ import { Web3Wrapper } from '@0x/web3-wrapper'; import * as React from 'react'; import { ColorOption } from '../style/theme'; -import { AffiliateInfo, OrderProcessState, ZeroExInstantError } from '../types'; +import { AffiliateInfo, Asset, OrderProcessState, ZeroExInstantError } from '../types'; import { BuyButton } from './buy_button'; import { PlacingOrderButton } from './placing_order_button'; @@ -21,6 +21,7 @@ export interface BuyOrderStateButtonProps { assetBuyer: AssetBuyer; web3Wrapper: Web3Wrapper; affiliateInfo?: AffiliateInfo; + selectedAsset?: Asset; onViewTransaction: () => void; onValidationPending: (buyQuote: BuyQuote) => void; onValidationFail: (buyQuote: BuyQuote, errorMessage: AssetBuyerError | ZeroExInstantError) => void; @@ -60,6 +61,7 @@ export const BuyOrderStateButtons: React.StatelessComponent<BuyOrderStateButtonP assetBuyer={props.assetBuyer} web3Wrapper={props.web3Wrapper} affiliateInfo={props.affiliateInfo} + selectedAsset={props.selectedAsset} onValidationPending={props.onValidationPending} onValidationFail={props.onValidationFail} onSignatureDenied={props.onSignatureDenied} |