aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/buy_order_state_buttons.tsx
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-09 03:04:16 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-09 03:04:16 +0800
commitc27194a35783d966b27deeb1654a077b8c1ba1c8 (patch)
tree2b1deb57dcddf1c52bb7155836971be52d0b9fa3 /packages/instant/src/components/buy_order_state_buttons.tsx
parent6d5f65b77ede962b96ca59f30df1679a8216bd06 (diff)
parentadcfe51190c8ca5cd4d11e49eb7e100c80fbd16c (diff)
downloaddexon-sol-tools-c27194a35783d966b27deeb1654a077b8c1ba1c8.tar
dexon-sol-tools-c27194a35783d966b27deeb1654a077b8c1ba1c8.tar.gz
dexon-sol-tools-c27194a35783d966b27deeb1654a077b8c1ba1c8.tar.bz2
dexon-sol-tools-c27194a35783d966b27deeb1654a077b8c1ba1c8.tar.lz
dexon-sol-tools-c27194a35783d966b27deeb1654a077b8c1ba1c8.tar.xz
dexon-sol-tools-c27194a35783d966b27deeb1654a077b8c1ba1c8.tar.zst
dexon-sol-tools-c27194a35783d966b27deeb1654a077b8c1ba1c8.zip
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/prevent-css-leakage
Diffstat (limited to 'packages/instant/src/components/buy_order_state_buttons.tsx')
-rw-r--r--packages/instant/src/components/buy_order_state_buttons.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/instant/src/components/buy_order_state_buttons.tsx b/packages/instant/src/components/buy_order_state_buttons.tsx
index 45ff890b4..bdac25cf2 100644
--- a/packages/instant/src/components/buy_order_state_buttons.tsx
+++ b/packages/instant/src/components/buy_order_state_buttons.tsx
@@ -14,7 +14,7 @@ import { Flex } from './ui/flex';
export interface BuyOrderStateButtonProps {
buyQuote?: BuyQuote;
buyOrderProcessingState: OrderProcessState;
- assetBuyer?: AssetBuyer;
+ assetBuyer: AssetBuyer;
affiliateInfo?: AffiliateInfo;
onViewTransaction: () => void;
onValidationPending: (buyQuote: BuyQuote) => void;
@@ -27,7 +27,7 @@ export interface BuyOrderStateButtonProps {
}
export const BuyOrderStateButtons: React.StatelessComponent<BuyOrderStateButtonProps> = props => {
- if (props.buyOrderProcessingState === OrderProcessState.FAILURE) {
+ if (props.buyOrderProcessingState === OrderProcessState.Failure) {
return (
<Flex justify="space-between">
<Button width="48%" onClick={props.onRetry} fontColor={ColorOption.white} fontSize="16px">
@@ -39,11 +39,11 @@ export const BuyOrderStateButtons: React.StatelessComponent<BuyOrderStateButtonP
</Flex>
);
} else if (
- props.buyOrderProcessingState === OrderProcessState.SUCCESS ||
- props.buyOrderProcessingState === OrderProcessState.PROCESSING
+ props.buyOrderProcessingState === OrderProcessState.Success ||
+ props.buyOrderProcessingState === OrderProcessState.Processing
) {
return <SecondaryButton onClick={props.onViewTransaction}>View Transaction</SecondaryButton>;
- } else if (props.buyOrderProcessingState === OrderProcessState.VALIDATING) {
+ } else if (props.buyOrderProcessingState === OrderProcessState.Validating) {
return <PlacingOrderButton />;
}