aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-27 03:54:44 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-27 03:54:44 +0800
commit03007e420cbb330fd82a28b26324658c747d3dd3 (patch)
tree4426ff88b7a6d7a77bbb5f528070517260d9f8f0 /packages/instant/src/containers
parent7fa1f25e065c737e7589b57fb0249db5c1ceb4fb (diff)
downloaddexon-0x-contracts-03007e420cbb330fd82a28b26324658c747d3dd3.tar.gz
dexon-0x-contracts-03007e420cbb330fd82a28b26324658c747d3dd3.tar.zst
dexon-0x-contracts-03007e420cbb330fd82a28b26324658c747d3dd3.zip
selected asset buy order state button -> selected asset buy order state buttons
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r--packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts (renamed from packages/instant/src/containers/selected_asset_buy_order_state_button.ts)11
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/instant/src/containers/selected_asset_buy_order_state_button.ts b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts
index 43c62c773..8927b8954 100644
--- a/packages/instant/src/containers/selected_asset_buy_order_state_button.ts
+++ b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts
@@ -26,8 +26,8 @@ interface ConnectedDispatch {
onBuyFailure: (buyQuote: BuyQuote, txHash: string) => void;
onRetry: () => void;
}
-export interface SelectedAssetButtonProps {}
-const mapStateToProps = (state: State, _ownProps: SelectedAssetButtonProps): ConnectedState => ({
+export interface SelectedAssetBuyOrderStateButtons {}
+const mapStateToProps = (state: State, _ownProps: SelectedAssetBuyOrderStateButtons): ConnectedState => ({
buyOrderProcessingState: state.buyOrderState.processState,
assetBuyer: state.assetBuyer,
buyQuote: state.latestBuyQuote,
@@ -50,7 +50,10 @@ const mapStateToProps = (state: State, _ownProps: SelectedAssetButtonProps): Con
},
});
-const mapDispatchToProps = (dispatch: Dispatch<Action>, ownProps: SelectedAssetButtonProps): ConnectedDispatch => ({
+const mapDispatchToProps = (
+ dispatch: Dispatch<Action>,
+ ownProps: SelectedAssetBuyOrderStateButtons,
+): ConnectedDispatch => ({
onAwaitingSignature: (buyQuote: BuyQuote) => {
const newOrderState: OrderState = { processState: OrderProcessState.AWAITING_SIGNATURE };
dispatch(actions.updateBuyOrderState(newOrderState));
@@ -72,7 +75,7 @@ const mapDispatchToProps = (dispatch: Dispatch<Action>, ownProps: SelectedAssetB
},
});
-export const SelectedAssetBuyOrderStateButton: React.ComponentClass<SelectedAssetButtonProps> = connect(
+export const SelectedAssetBuyOrderStateButtons: React.ComponentClass<SelectedAssetBuyOrderStateButtons> = connect(
mapStateToProps,
mapDispatchToProps,
)(BuyOrderStateButtons);