2021-03-05 20:24:26 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doOpenModal } from 'redux/actions/app';
|
2021-10-08 05:47:39 +02:00
|
|
|
import { makeSelectClaimForClaimId } from 'redux/selectors/claims';
|
2021-03-05 20:24:26 +01:00
|
|
|
import TransactionListTableItem from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => {
|
|
|
|
const claimId = props.txo && props.txo.signing_channel && props.txo.signing_channel.channel_id;
|
|
|
|
return {
|
|
|
|
signingChannel: makeSelectClaimForClaimId(claimId)(state),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
|
|
|
openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(TransactionListTableItem);
|