diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-23 05:28:22 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-23 05:28:22 +0800 |
commit | 579a49ba918ef3c10f3eee0c63ff8d8f8be61fdf (patch) | |
tree | bd6f240c901a1c3a663d7e0813e19bd5d0473658 /packages/instant/src/containers | |
parent | 071f9a5a73eef54b657adce66d938ee444bd1d72 (diff) | |
download | dexon-sol-tools-579a49ba918ef3c10f3eee0c63ff8d8f8be61fdf.tar dexon-sol-tools-579a49ba918ef3c10f3eee0c63ff8d8f8be61fdf.tar.gz dexon-sol-tools-579a49ba918ef3c10f3eee0c63ff8d8f8be61fdf.tar.bz2 dexon-sol-tools-579a49ba918ef3c10f3eee0c63ff8d8f8be61fdf.tar.lz dexon-sol-tools-579a49ba918ef3c10f3eee0c63ff8d8f8be61fdf.tar.xz dexon-sol-tools-579a49ba918ef3c10f3eee0c63ff8d8f8be61fdf.tar.zst dexon-sol-tools-579a49ba918ef3c10f3eee0c63ff8d8f8be61fdf.zip |
Placing order button
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r-- | packages/instant/src/containers/selected_asset_button.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/instant/src/containers/selected_asset_button.tsx b/packages/instant/src/containers/selected_asset_button.tsx index 8c617804e..6fad365fa 100644 --- a/packages/instant/src/containers/selected_asset_button.tsx +++ b/packages/instant/src/containers/selected_asset_button.tsx @@ -6,6 +6,8 @@ import { SecondaryButton } from '../components/secondary_button'; import { State } from '../redux/reducer'; import { AsyncProcessState } from '../types'; +import { PlacingOrderButton } from '../components/placing_order_button'; + import { SelectedAssetBuyButton } from './selected_asset_buy_button'; import { SelectedAssetRetryButton } from './selected_asset_retry_button'; @@ -23,9 +25,9 @@ const SelectedAssetButtonPresentationComponent: React.StatelessComponent<{ if (props.buyOrderState === AsyncProcessState.FAILURE) { return <SelectedAssetRetryButton />; } else if (props.buyOrderState === AsyncProcessState.SUCCESS) { - return <SecondaryButton text="Success" isDisabled={true} />; + return <SecondaryButton isDisabled={true}>Success</SecondaryButton>; } else if (props.buyOrderState === AsyncProcessState.PENDING) { - return <SecondaryButton text="Processing" isDisabled={true} />; + return <PlacingOrderButton />; } return <SelectedAssetBuyButton />; |