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

17 lines
429 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 => ({
fetchTransactions: () => dispatch(doFetchTransactions()),
});
export default connect(
select,
perform
)(RefreshTransactionButton);