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