2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2018-09-24 05:44:42 +02:00
|
|
|
import { selectClaimedRewardsByTransactionId } from 'lbryinc';
|
2018-04-18 06:03:01 +02:00
|
|
|
import { doNavigate } from 'redux/actions/navigation';
|
2018-10-18 19:56:10 +02:00
|
|
|
import {
|
|
|
|
selectAllMyClaimsByOutpoint,
|
2018-10-29 18:25:22 +01:00
|
|
|
doNotify,
|
2018-10-18 19:56:10 +02:00
|
|
|
selectTransactionListFilter,
|
|
|
|
doSetTransactionListFilter,
|
|
|
|
} from 'lbry-redux';
|
2017-12-21 22:08:54 +01:00
|
|
|
import TransactionList from './view';
|
2017-05-11 02:59:47 +02:00
|
|
|
|
2017-09-18 02:52:57 +02:00
|
|
|
const select = state => ({
|
|
|
|
rewards: selectClaimedRewardsByTransactionId(state),
|
2017-11-01 21:23:30 +01:00
|
|
|
myClaims: selectAllMyClaimsByOutpoint(state),
|
2018-10-18 19:56:10 +02:00
|
|
|
filterSetting: selectTransactionListFilter(state),
|
2017-09-18 02:52:57 +02:00
|
|
|
});
|
|
|
|
|
2017-09-04 19:35:41 +02:00
|
|
|
const perform = dispatch => ({
|
|
|
|
navigate: (path, params) => dispatch(doNavigate(path, params)),
|
2018-10-29 18:25:22 +01:00
|
|
|
openModal: (modal, props) => dispatch(doNotify(modal, props)),
|
2018-10-18 19:56:10 +02:00
|
|
|
setTransactionFilter: filterSetting => dispatch(doSetTransactionListFilter(filterSetting)),
|
2017-09-04 19:35:41 +02:00
|
|
|
});
|
|
|
|
|
2018-09-24 05:44:42 +02:00
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(TransactionList);
|