lbry-desktop/ui/component/transactionRefreshButton/index.js
2019-11-11 13:27:29 -05:00

16 lines
457 B
JavaScript

import { connect } from 'react-redux';
import { doFetchTransactions, selectIsFetchingTransactions } from 'lbry-redux';
import RefreshTransactionButton from './view';
const select = state => ({
fetchingTransactions: selectIsFetchingTransactions(state),
});
const perform = dispatch => ({
fetchTransactions: (page, pageSize) => dispatch(doFetchTransactions(page, pageSize)),
});
export default connect(
select,
perform
)(RefreshTransactionButton);