UNPKG

@shopgate/engage

Version:
5 lines 600 B
import{connect}from'react-redux';import{historyPop}from'@shopgate/pwa-common/actions/router';import{resetPassword as _resetPassword}from"../../actions";/** * Connects the dispatch function to a callable function in the props. * @param {Function} dispatch The redux dispatch function. * @return {Object} The extended component props. */var mapDispatchToProps=function mapDispatchToProps(dispatch){return{resetPassword:function resetPassword(email){return dispatch(_resetPassword(email));},goBack:function goBack(){return dispatch(historyPop());}};};export default connect(null,mapDispatchToProps);