madiator.com/ui/component/transactionListTableItem/index.js

18 lines
581 B
JavaScript
Raw Permalink Normal View History

2021-08-16 12:11:25 +02:00
import { connect } from 'react-redux';
import { doOpenModal } from 'redux/actions/app';
import { makeSelectClaimForClaimId } from 'lbry-redux';
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);