4f6befc0ce
* Refactor doAbandonClaim parameters to only claim - Gets txid and nout by default now, and passing claim allows using more data to verify ownership in case of txid:nout failing again - Unused on modalRemoveCard - Edited the comment on doCollectionDelete to explain better * Fix doAbandonClaim failing to select my claim Co-authored-by: saltrafael <76502841+saltrafael@users.noreply.github.com>
19 lines
728 B
JavaScript
19 lines
728 B
JavaScript
import { connect } from 'react-redux';
|
|
import { doHideModal } from 'redux/actions/app';
|
|
import { doAbandonTxo, doResolveUri } from 'redux/actions/claims';
|
|
import { selectTransactionItems } from 'redux/selectors/wallet';
|
|
import { doToast } from 'redux/actions/notifications';
|
|
import ModalRevokeClaim from './view';
|
|
|
|
const select = (state) => ({
|
|
transactionItems: selectTransactionItems(state),
|
|
});
|
|
|
|
const perform = (dispatch) => ({
|
|
toast: (message, isError) => dispatch(doToast({ message, isError })),
|
|
closeModal: () => dispatch(doHideModal()),
|
|
abandonTxo: (txo, cb) => dispatch(doAbandonTxo(txo, cb)),
|
|
doResolveUri: (uri) => dispatch(doResolveUri(uri)),
|
|
});
|
|
|
|
export default connect(select, perform)(ModalRevokeClaim);
|