aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers/selected_asset_instant_heading.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-18 07:41:35 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-18 07:41:35 +0800
commit6cf8d57aee3ed332bd1109f8f39792894147d2dd (patch)
tree2a12a521fa6bba01f64799ad40acbb3b074f9cff /packages/instant/src/containers/selected_asset_instant_heading.ts
parent7b43cd14b305e3f01081e7ea7d0385966e4529be (diff)
downloaddexon-0x-contracts-6cf8d57aee3ed332bd1109f8f39792894147d2dd.tar.gz
dexon-0x-contracts-6cf8d57aee3ed332bd1109f8f39792894147d2dd.tar.zst
dexon-0x-contracts-6cf8d57aee3ed332bd1109f8f39792894147d2dd.zip
add concept of quoteState
Diffstat (limited to 'packages/instant/src/containers/selected_asset_instant_heading.ts')
-rw-r--r--packages/instant/src/containers/selected_asset_instant_heading.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/instant/src/containers/selected_asset_instant_heading.ts b/packages/instant/src/containers/selected_asset_instant_heading.ts
index c97cfe11a..be31527f1 100644
--- a/packages/instant/src/containers/selected_asset_instant_heading.ts
+++ b/packages/instant/src/containers/selected_asset_instant_heading.ts
@@ -5,6 +5,7 @@ import { connect } from 'react-redux';
import { oc } from 'ts-optchain';
import { State } from '../redux/reducer';
+import { AsyncProcessState } from '../types';
import { InstantHeading } from '../components/instant_heading';
@@ -14,12 +15,14 @@ interface ConnectedState {
selectedAssetAmount?: BigNumber;
totalEthBaseAmount?: BigNumber;
ethUsdPrice?: BigNumber;
+ quoteState: AsyncProcessState;
}
const mapStateToProps = (state: State, _ownProps: InstantHeadingProps): ConnectedState => ({
selectedAssetAmount: state.selectedAssetAmount,
totalEthBaseAmount: oc(state).latestBuyQuote.worstCaseQuoteInfo.totalEthAmount(),
ethUsdPrice: state.ethUsdPrice,
+ quoteState: state.quoteState,
});
export const SelectedAssetInstantHeading: React.ComponentClass<InstantHeadingProps> = connect(mapStateToProps)(