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

17 lines
556 B
JavaScript
Raw Normal View History

2021-08-16 12:11:25 +02:00
import { connect } from 'react-redux';
import { selectClaimedRewardsByTransactionId } from 'redux/selectors/rewards';
import { doOpenModal } from 'redux/actions/app';
import { selectIsFetchingTxos } from 'lbry-redux';
import TransactionListTable from './view';
const select = state => ({
rewards: selectClaimedRewardsByTransactionId(state),
loading: selectIsFetchingTxos(state),
});
const perform = dispatch => ({
openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
});
export default connect(select, perform)(TransactionListTable);