lbry-desktop/ui/component/transactionListRecent/index.js

19 lines
459 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
2019-11-01 18:27:01 +01:00
import { doFetchTransactions, makeSelectLatestTransactions } from 'lbry-redux';
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
});
export default connect(
select,
perform
)(TransactionListRecent);