2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2018-04-18 06:03:01 +02:00
|
|
|
import {
|
|
|
|
doFetchTransactions,
|
|
|
|
selectTransactionItems,
|
|
|
|
selectIsFetchingTransactions,
|
2018-11-07 20:35:47 +01:00
|
|
|
doFetchClaimListMine,
|
2018-04-18 06:03:01 +02:00
|
|
|
} from 'lbry-redux';
|
2017-12-21 22:08:54 +01:00
|
|
|
import TransactionHistoryPage from './view';
|
2017-08-19 05:08:01 +02:00
|
|
|
|
2017-08-20 23:42:00 +02:00
|
|
|
const select = state => ({
|
|
|
|
fetchingTransactions: selectIsFetchingTransactions(state),
|
|
|
|
transactions: selectTransactionItems(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
fetchTransactions: () => dispatch(doFetchTransactions()),
|
2018-11-07 20:35:47 +01:00
|
|
|
fetchMyClaims: () => dispatch(doFetchClaimListMine()),
|
2017-08-20 23:42:00 +02:00
|
|
|
});
|
|
|
|
|
2018-11-01 22:55:25 +01:00
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(TransactionHistoryPage);
|