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

18 lines
571 B
JavaScript
Raw Normal View History

2017-10-27 21:42:54 +02:00
import React from "react";
import { connect } from "react-redux";
2017-11-13 22:02:23 +01:00
import { doCloseModal } from "redux/actions/app";
import { doAbandonClaim } from "redux/actions/content";
import { selectTransactionItems } from "redux/selectors/wallet";
2017-10-27 21:42:54 +02:00
import ModalRevokeClaim from "./view";
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(doCloseModal()),
2017-11-01 21:23:30 +01:00
abandonClaim: (txid, nout) => dispatch(doAbandonClaim(txid, nout)),
2017-10-27 21:42:54 +02:00
});
2017-11-01 21:23:30 +01:00
export default connect(select, perform)(ModalRevokeClaim);