lbry-desktop/ui/modal/modalRevokeClaim/index.js

17 lines
572 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import { doAbandonTxo, doAbandonClaim, selectTransactionItems } from 'lbry-redux';
import ModalRevokeClaim from './view';
2017-10-27 21:42:54 +02:00
2017-11-01 21:23:30 +01:00
const select = state => ({
transactionItems: selectTransactionItems(state),
});
2017-10-27 21:42:54 +02:00
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
abandonTxo: (txo, cb) => dispatch(doAbandonTxo(txo, cb)),
abandonClaim: (txid, nout, cb) => dispatch(doAbandonClaim(txid, nout, cb)),
2017-10-27 21:42:54 +02:00
});
export default connect(select, perform)(ModalRevokeClaim);