lbry-desktop/ui/component/transactionListRecent/index.js
2019-11-11 13:27:29 -05:00

18 lines
459 B
JavaScript

import { connect } from 'react-redux';
import { doFetchTransactions, makeSelectLatestTransactions } from 'lbry-redux';
import TransactionListRecent from './view';
const select = state => {
return {
transactions: makeSelectLatestTransactions(state),
};
};
const perform = dispatch => ({
fetchTransactions: (page, pageSize) => dispatch(doFetchTransactions(page, pageSize)),
});
export default connect(
select,
perform
)(TransactionListRecent);