1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-28 23:06:37 +01:00
metamask-extension/ui/components/app/modals/confirm-reset-account/confirm-reset-account.container.js

17 lines
507 B
JavaScript
Raw Normal View History

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()),
};
};
2018-05-31 01:17:40 +02:00
export default compose(
withModalProps,
connect(null, mapDispatchToProps),
)(ConfirmResetAccount);