diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-27 03:54:44 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-27 03:54:44 +0800 |
commit | 03007e420cbb330fd82a28b26324658c747d3dd3 (patch) | |
tree | 4426ff88b7a6d7a77bbb5f528070517260d9f8f0 /packages | |
parent | 7fa1f25e065c737e7589b57fb0249db5c1ceb4fb (diff) | |
download | dexon-0x-contracts-03007e420cbb330fd82a28b26324658c747d3dd3.tar dexon-0x-contracts-03007e420cbb330fd82a28b26324658c747d3dd3.tar.gz dexon-0x-contracts-03007e420cbb330fd82a28b26324658c747d3dd3.tar.bz2 dexon-0x-contracts-03007e420cbb330fd82a28b26324658c747d3dd3.tar.lz dexon-0x-contracts-03007e420cbb330fd82a28b26324658c747d3dd3.tar.xz 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')
-rw-r--r-- | packages/instant/src/components/zero_ex_instant_container.tsx | 4 | ||||
-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 |
2 files changed, 9 insertions, 6 deletions
diff --git a/packages/instant/src/components/zero_ex_instant_container.tsx b/packages/instant/src/components/zero_ex_instant_container.tsx index 1d17ed12a..ff19351ff 100644 --- a/packages/instant/src/components/zero_ex_instant_container.tsx +++ b/packages/instant/src/components/zero_ex_instant_container.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { LatestBuyQuoteOrderDetails } from '../containers/latest_buy_quote_order_details'; import { LatestError } from '../containers/latest_error'; -import { SelectedAssetBuyOrderStateButton } from '../containers/selected_asset_buy_order_state_button'; +import { SelectedAssetBuyOrderStateButtons } from '../containers/selected_asset_buy_order_state_buttons'; import { SelectedAssetInstantHeading } from '../containers/selected_asset_instant_heading'; import { ColorOption } from '../style/theme'; @@ -27,7 +27,7 @@ export const ZeroExInstantContainer: React.StatelessComponent<ZeroExInstantConta <SelectedAssetInstantHeading /> <LatestBuyQuoteOrderDetails /> <Container padding="20px" width="100%"> - <SelectedAssetBuyOrderStateButton /> + <SelectedAssetBuyOrderStateButtons /> </Container> </Flex> </Container> 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); |