lbry-desktop/src/renderer/component/transactionList/index.js

28 lines
843 B
JavaScript
Raw Normal View History

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,
doNotify,
2018-10-18 19:56:10 +02:00
selectTransactionListFilter,
doSetTransactionListFilter,
} from 'lbry-redux';
import TransactionList from './view';
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),
});
const perform = dispatch => ({
navigate: (path, params) => dispatch(doNavigate(path, params)),
openModal: (modal, props) => dispatch(doNotify(modal, props)),
2018-10-18 19:56:10 +02:00
setTransactionFilter: filterSetting => dispatch(doSetTransactionListFilter(filterSetting)),
});
2018-09-24 05:44:42 +02:00
export default connect(
select,
perform
)(TransactionList);