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