diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-19 05:51:45 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-19 06:32:32 +0800 |
commit | 8a6e0776640a7bec7eab1f91b3b611dc4cadd2f7 (patch) | |
tree | 6cb3708c465f1c75783f763ecfd360e19d0b9a3b /packages/instant/src/containers | |
parent | b4af27dd4462a001904ac6d69e43aac9fd7bb69a (diff) | |
download | dexon-sol-tools-8a6e0776640a7bec7eab1f91b3b611dc4cadd2f7.tar dexon-sol-tools-8a6e0776640a7bec7eab1f91b3b611dc4cadd2f7.tar.gz dexon-sol-tools-8a6e0776640a7bec7eab1f91b3b611dc4cadd2f7.tar.bz2 dexon-sol-tools-8a6e0776640a7bec7eab1f91b3b611dc4cadd2f7.tar.lz dexon-sol-tools-8a6e0776640a7bec7eab1f91b3b611dc4cadd2f7.tar.xz dexon-sol-tools-8a6e0776640a7bec7eab1f91b3b611dc4cadd2f7.tar.zst dexon-sol-tools-8a6e0776640a7bec7eab1f91b3b611dc4cadd2f7.zip |
feat(instant): Indicate that order details section is loading by having pulsing placeholder
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r-- | packages/instant/src/containers/latest_buy_quote_order_details.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/instant/src/containers/latest_buy_quote_order_details.ts b/packages/instant/src/containers/latest_buy_quote_order_details.ts index 597bf3088..092aaaf20 100644 --- a/packages/instant/src/containers/latest_buy_quote_order_details.ts +++ b/packages/instant/src/containers/latest_buy_quote_order_details.ts @@ -8,18 +8,21 @@ import { oc } from 'ts-optchain'; import { State } from '../redux/reducer'; import { OrderDetails } from '../components/order_details'; +import { AsyncProcessState } from '../types'; export interface LatestBuyQuoteOrderDetailsProps {} interface ConnectedState { buyQuoteInfo?: BuyQuoteInfo; ethUsdPrice?: BigNumber; + isLoading: boolean; } const mapStateToProps = (state: State, _ownProps: LatestBuyQuoteOrderDetailsProps): ConnectedState => ({ // use the worst case quote info buyQuoteInfo: oc(state).latestBuyQuote.worstCaseQuoteInfo(), ethUsdPrice: state.ethUsdPrice, + isLoading: state.quoteRequestState === AsyncProcessState.PENDING, }); export const LatestBuyQuoteOrderDetails: React.ComponentClass<LatestBuyQuoteOrderDetailsProps> = connect( |