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

26 lines
635 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import {
doFetchTransactions,
makeSelectLatestTransactions,
doFetchClaimListMine,
selectMyClaimsWithoutChannels,
} 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),
myClaims: selectMyClaimsWithoutChannels(state),
2019-11-01 18:27:01 +01:00
};
};
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)),
fetchClaimListMine: () => dispatch(doFetchClaimListMine()),
2017-08-20 23:42:00 +02:00
});
export default connect(
select,
perform
)(TransactionListRecent);