2017-12-21 18:08:54 -03:00
|
|
|
import { connect } from 'react-redux';
|
2018-10-29 13:23:53 -04:00
|
|
|
import { doHideModal } from 'redux/actions/app';
|
|
|
|
import { doAbandonClaim, selectTransactionItems } from 'lbry-redux';
|
2017-12-21 18:08:54 -03:00
|
|
|
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 => ({
|
2018-10-29 13:23:53 -04:00
|
|
|
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
|
|
|
});
|
|
|
|
|
2018-11-01 22:55:25 +01:00
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(ModalRevokeClaim);
|