lbry-desktop/src/renderer/page/transactionHistory/index.js

24 lines
584 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
2018-04-18 06:03:01 +02:00
import {
doFetchTransactions,
selectTransactionItems,
selectIsFetchingTransactions,
doFetchClaimListMine,
2018-04-18 06:03:01 +02:00
} from 'lbry-redux';
import TransactionHistoryPage from './view';
2017-08-20 23:42:00 +02:00
const select = state => ({
fetchingTransactions: selectIsFetchingTransactions(state),
transactions: selectTransactionItems(state),
});
const perform = dispatch => ({
fetchTransactions: () => dispatch(doFetchTransactions()),
fetchMyClaims: () => dispatch(doFetchClaimListMine()),
2017-08-20 23:42:00 +02:00
});
export default connect(
select,
perform
)(TransactionHistoryPage);