2021-02-04 19:15:23 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { compose } from 'redux';
|
|
|
|
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props';
|
|
|
|
import { resetAccount } from '../../../../store/actions';
|
|
|
|
import ConfirmResetAccount from './confirm-reset-account.component';
|
2018-05-31 01:17:40 +02:00
|
|
|
|
2020-02-15 21:34:12 +01:00
|
|
|
const mapDispatchToProps = (dispatch) => {
|
2018-05-31 01:17:40 +02:00
|
|
|
return {
|
|
|
|
resetAccount: () => dispatch(resetAccount()),
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
|
|
|
};
|
2018-05-31 01:17:40 +02:00
|
|
|
|
2018-09-17 19:34:29 +02:00
|
|
|
export default compose(
|
|
|
|
withModalProps,
|
2020-07-14 17:20:41 +02:00
|
|
|
connect(null, mapDispatchToProps),
|
2021-02-04 19:15:23 +01:00
|
|
|
)(ConfirmResetAccount);
|