2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2018-10-29 18:23:53 +01:00
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2021-10-08 05:47:39 +02:00
|
|
|
import { doAbandonTxo, doAbandonClaim, doResolveUri } from 'redux/actions/claims';
|
2020-07-23 16:22:57 +02:00
|
|
|
import { doToast } from 'redux/actions/notifications';
|
2017-12-21 22:08:54 +01:00
|
|
|
import ModalRevokeClaim from './view';
|
2021-10-08 05:47:39 +02:00
|
|
|
import { selectTransactionItems } from 'redux/selectors/wallet';
|
2017-10-27 21:42:54 +02:00
|
|
|
|
2021-10-08 05:47:39 +02:00
|
|
|
const select = (state) => ({
|
2017-11-01 21:23:30 +01:00
|
|
|
transactionItems: selectTransactionItems(state),
|
|
|
|
});
|
|
|
|
|
2021-10-08 05:47:39 +02:00
|
|
|
const perform = (dispatch) => ({
|
2020-07-23 16:22:57 +02:00
|
|
|
toast: (message, isError) => dispatch(doToast({ message, isError })),
|
2018-10-29 18:23:53 +01:00
|
|
|
closeModal: () => dispatch(doHideModal()),
|
2020-04-10 19:31:36 +02:00
|
|
|
abandonTxo: (txo, cb) => dispatch(doAbandonTxo(txo, cb)),
|
2022-01-20 02:54:01 +01:00
|
|
|
abandonClaim: (claim, cb) => dispatch(doAbandonClaim(claim, cb)),
|
2021-06-17 19:57:04 +02:00
|
|
|
doResolveUri: (uri) => dispatch(doResolveUri(uri)),
|
2017-10-27 21:42:54 +02:00
|
|
|
});
|
|
|
|
|
2020-04-10 19:31:36 +02:00
|
|
|
export default connect(select, perform)(ModalRevokeClaim);
|