diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-10 05:23:01 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-10 05:23:01 +0800 |
commit | 3fd667b3bee4652ec8a1a362790ceaf3fe8cf7d9 (patch) | |
tree | b0f7323e51d4cb659e81a210a80336072d4c9a01 /packages | |
parent | fa7bd072d064d1c79c8e84bc42463491ebbad33f (diff) | |
download | dexon-sol-tools-3fd667b3bee4652ec8a1a362790ceaf3fe8cf7d9.tar dexon-sol-tools-3fd667b3bee4652ec8a1a362790ceaf3fe8cf7d9.tar.gz dexon-sol-tools-3fd667b3bee4652ec8a1a362790ceaf3fe8cf7d9.tar.bz2 dexon-sol-tools-3fd667b3bee4652ec8a1a362790ceaf3fe8cf7d9.tar.lz dexon-sol-tools-3fd667b3bee4652ec8a1a362790ceaf3fe8cf7d9.tar.xz dexon-sol-tools-3fd667b3bee4652ec8a1a362790ceaf3fe8cf7d9.tar.zst dexon-sol-tools-3fd667b3bee4652ec8a1a362790ceaf3fe8cf7d9.zip |
feat: make zero ex instant container switch between progress and payment
Diffstat (limited to 'packages')
-rw-r--r-- | packages/instant/src/containers/connected_zero_ex_instant_container.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/instant/src/containers/connected_zero_ex_instant_container.ts b/packages/instant/src/containers/connected_zero_ex_instant_container.ts new file mode 100644 index 000000000..9606d18c2 --- /dev/null +++ b/packages/instant/src/containers/connected_zero_ex_instant_container.ts @@ -0,0 +1,21 @@ +import * as React from 'react'; +import { connect } from 'react-redux'; + +import { State } from '../redux/reducer'; +import { OrderProcessState } from '../types'; + +import { ZeroExInstantContainer } from '../components/zero_ex_instant_container'; + +export interface ConnectedZeroExInstantContainerProps {} + +interface ConnectedState { + orderProcessState: OrderProcessState; +} + +const mapStateToProps = (state: State, _ownProps: ConnectedZeroExInstantContainerProps): ConnectedState => ({ + orderProcessState: state.buyOrderState.processState, +}); + +export const ConnectedZeroExInstantContainer: React.ComponentClass<ConnectedZeroExInstantContainerProps> = connect( + mapStateToProps, +)(ZeroExInstantContainer); |