lbry-desktop/src/renderer/component/transactionListRecent/index.js

21 lines
573 B
JavaScript
Raw Normal View History

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';
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);