1234567891011121314151617181920212223242526272829303132333435 |
- import React from 'react';
- import {connect} from 'react-redux';
- import {initPersonInfo} from '../store/async-actions/patInfo';
- import {SET_PARAMS} from '@store/types/patInfo.js';
- import PatInfo from '../components/PatInfo';
- import {billing} from '@store/async-actions/pushMessage';
- function mapStateToProps({patInfo}) {
- return ({patInfo})
- }
- function mapDispatchToProps(dispatch) {
- return {
- getMessage: () => {
- dispatch(initPersonInfo)
- },
- setParams: (data) => {
- dispatch({
- type:SET_PARAMS,
- data
- });
- },
- handlePush:()=>{
- dispatch(billing());
- }
- }
- }
- const PatInfoComtainer = connect(
- mapStateToProps,
- mapDispatchToProps
- )(PatInfo);
- export default PatInfoComtainer;
|