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

14 lines
443 B
JavaScript
Raw Normal View History

2017-10-27 21:42:54 +02:00
import React from "react";
import { connect } from "react-redux";
import { doCloseModal } from "actions/app";
import { doAbandonClaim } from "actions/content";
import ModalRevokeClaim from "./view";
const perform = dispatch => ({
closeModal: () => dispatch(doCloseModal()),
2017-10-30 17:25:56 +01:00
abandonClaim: (claimId, name, txid, nout) =>
dispatch(doAbandonClaim(claimId, name, txid, nout)),
2017-10-27 21:42:54 +02:00
});
export default connect(null, perform)(ModalRevokeClaim);