2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2017-08-20 23:42:00 +02:00
|
|
|
import {
|
2018-04-18 06:03:01 +02:00
|
|
|
doFetchTransactions,
|
2017-08-20 23:42:00 +02:00
|
|
|
selectRecentTransactions,
|
|
|
|
selectHasTransactions,
|
|
|
|
selectIsFetchingTransactions,
|
2018-04-18 06:03:01 +02:00
|
|
|
} from 'lbry-redux';
|
2017-12-21 22:08:54 +01:00
|
|
|
import TransactionListRecent from './view';
|
2017-08-20 23:42:00 +02:00
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
fetchingTransactions: selectIsFetchingTransactions(state),
|
|
|
|
transactions: selectRecentTransactions(state),
|
|
|
|
hasTransactions: selectHasTransactions(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
fetchTransactions: () => dispatch(doFetchTransactions()),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(TransactionListRecent);
|