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

20 lines
721 B
JavaScript
Raw Normal View History

import React from 'react';
import { connect } from 'react-redux';
import { doNavigate } from 'redux/actions/navigation';
import { doOpenModal } from 'redux/actions/app';
import { selectClaimedRewardsByTransactionId } from 'redux/selectors/rewards';
import { selectAllMyClaimsByOutpoint } from 'redux/selectors/claims';
import TransactionList from './view';
const select = state => ({
rewards: selectClaimedRewardsByTransactionId(state),
2017-11-01 21:23:30 +01:00
myClaims: selectAllMyClaimsByOutpoint(state),
});
const perform = dispatch => ({
navigate: (path, params) => dispatch(doNavigate(path, params)),
2017-10-27 21:42:54 +02:00
openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
});
2017-10-24 15:10:27 +02:00
export default connect(select, perform)(TransactionList);