2019-09-23 04:47:07 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { selectClaimedRewardsByTransactionId } from 'lbryinc';
|
|
|
|
import { doOpenModal } from 'redux/actions/app';
|
2020-04-10 19:31:36 +02:00
|
|
|
import { selectIsFetchingTxos } from 'lbry-redux';
|
2019-09-23 04:47:07 +02:00
|
|
|
import TransactionListTable from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
rewards: selectClaimedRewardsByTransactionId(state),
|
2020-04-10 19:31:36 +02:00
|
|
|
loading: selectIsFetchingTxos(state),
|
2019-09-23 04:47:07 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
|
|
|
|
});
|
|
|
|
|
2020-04-10 19:31:36 +02:00
|
|
|
export default connect(select, perform)(TransactionListTable);
|