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 { delRpcTarget } from '../../../../store/actions';
|
|
|
|
import ConfirmDeleteNetwork from './confirm-delete-network.component';
|
2019-07-02 14:13:02 +02:00
|
|
|
|
2020-02-15 21:34:12 +01:00
|
|
|
const mapDispatchToProps = (dispatch) => {
|
2019-07-02 14:13:02 +02:00
|
|
|
return {
|
|
|
|
delRpcTarget: (target) => dispatch(delRpcTarget(target)),
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
|
|
|
};
|
2019-07-02 14:13:02 +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
|
|
|
)(ConfirmDeleteNetwork);
|