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

19 lines
496 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import { doAbandonClaim, selectTransactionItems } from 'lbry-redux';
import ModalRevokeClaim from './view';
2017-10-28 01:12:54 +05:30
2017-11-02 01:53:30 +05:30
const select = state => ({
transactionItems: selectTransactionItems(state),
});
2017-10-28 01:12:54 +05:30
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
2017-11-02 01:53:30 +05:30
abandonClaim: (txid, nout) => dispatch(doAbandonClaim(txid, nout)),
2017-10-28 01:12:54 +05:30
});
export default connect(
select,
perform
)(ModalRevokeClaim);