diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-20 07:37:54 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-20 07:41:39 +0800 |
commit | bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab (patch) | |
tree | 0c5a0b64a1a20576c5d1fc2ab43cc42fc349112f /packages/instant/src/containers | |
parent | 51779fec38a32c0bbbc0209559f84aeda8a45d1a (diff) | |
download | dexon-sol-tools-bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab.tar dexon-sol-tools-bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab.tar.gz dexon-sol-tools-bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab.tar.bz2 dexon-sol-tools-bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab.tar.lz dexon-sol-tools-bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab.tar.xz dexon-sol-tools-bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab.tar.zst dexon-sol-tools-bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab.zip |
feat(instant): Add failure state and icon
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r-- | packages/instant/src/containers/selected_asset_button.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/instant/src/containers/selected_asset_button.tsx b/packages/instant/src/containers/selected_asset_button.tsx index d84ae1a52..8c617804e 100644 --- a/packages/instant/src/containers/selected_asset_button.tsx +++ b/packages/instant/src/containers/selected_asset_button.tsx @@ -2,6 +2,7 @@ import * as _ from 'lodash'; import * as React from 'react'; import { connect } from 'react-redux'; +import { SecondaryButton } from '../components/secondary_button'; import { State } from '../redux/reducer'; import { AsyncProcessState } from '../types'; @@ -21,6 +22,10 @@ const SelectedAssetButtonPresentationComponent: React.StatelessComponent<{ }> = props => { if (props.buyOrderState === AsyncProcessState.FAILURE) { return <SelectedAssetRetryButton />; + } else if (props.buyOrderState === AsyncProcessState.SUCCESS) { + return <SecondaryButton text="Success" isDisabled={true} />; + } else if (props.buyOrderState === AsyncProcessState.PENDING) { + return <SecondaryButton text="Processing" isDisabled={true} />; } return <SelectedAssetBuyButton />; |