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