lbry-desktop/ui/component/transactionRefreshButton/index.js

17 lines
457 B
JavaScript
Raw Normal View History

2018-11-08 18:13:36 +01:00
import { connect } from 'react-redux';
import { doFetchTransactions, selectIsFetchingTransactions } from 'lbry-redux';
import RefreshTransactionButton from './view';
const select = state => ({
fetchingTransactions: selectIsFetchingTransactions(state),
});
const perform = dispatch => ({
2019-11-01 18:27:01 +01:00
fetchTransactions: (page, pageSize) => dispatch(doFetchTransactions(page, pageSize)),
2018-11-08 18:13:36 +01:00
});
export default connect(
select,
perform
)(RefreshTransactionButton);