7730ee1e3f
paginate claim list improve handling of pending publishes add abandon to publishes list previews use bodyCard fix publish edit notification
16 lines
572 B
JavaScript
16 lines
572 B
JavaScript
import { connect } from 'react-redux';
|
|
import { doHideModal } from 'redux/actions/app';
|
|
import { doAbandonTxo, doAbandonClaim, selectTransactionItems } from 'lbry-redux';
|
|
import ModalRevokeClaim from './view';
|
|
|
|
const select = state => ({
|
|
transactionItems: selectTransactionItems(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
closeModal: () => dispatch(doHideModal()),
|
|
abandonTxo: (txo, cb) => dispatch(doAbandonTxo(txo, cb)),
|
|
abandonClaim: (txid, nout, cb) => dispatch(doAbandonClaim(txid, nout, cb)),
|
|
});
|
|
|
|
export default connect(select, perform)(ModalRevokeClaim);
|