2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2019-11-01 18:27:01 +01:00
|
|
|
import { doFetchTransactions, makeSelectLatestTransactions } from 'lbry-redux';
|
2017-12-21 22:08:54 +01:00
|
|
|
import TransactionListRecent from './view';
|
2017-08-20 23:42:00 +02:00
|
|
|
|
2019-11-01 18:27:01 +01:00
|
|
|
const select = state => {
|
|
|
|
return {
|
|
|
|
transactions: makeSelectLatestTransactions(state),
|
|
|
|
};
|
|
|
|
};
|
2017-08-20 23:42:00 +02:00
|
|
|
|
|
|
|
const perform = dispatch => ({
|
2019-11-01 18:27:01 +01:00
|
|
|
fetchTransactions: (page, pageSize) => dispatch(doFetchTransactions(page, pageSize)),
|
2017-08-20 23:42:00 +02:00
|
|
|
});
|
|
|
|
|
2018-10-31 17:48:30 +01:00
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(TransactionListRecent);
|