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

17 lines
572 B
JavaScript
Raw Normal View History

2019-09-23 04:47:07 +02:00
import { connect } from 'react-redux';
import { selectClaimedRewardsByTransactionId } from 'redux/selectors/rewards';
2019-09-23 04:47:07 +02:00
import { doOpenModal } from 'redux/actions/app';
import { selectIsFetchingTxos } from 'redux/selectors/wallet';
2019-09-23 04:47:07 +02:00
import TransactionListTable from './view';
const select = (state) => ({
2019-09-23 04:47:07 +02:00
rewards: selectClaimedRewardsByTransactionId(state),
loading: selectIsFetchingTxos(state),
2019-09-23 04:47:07 +02:00
});
const perform = (dispatch) => ({
2019-09-23 04:47:07 +02:00
openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
});
export default connect(select, perform)(TransactionListTable);