2017-12-21 22:08:54 +01:00
|
|
|
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';
|
2017-05-11 02:59:47 +02:00
|
|
|
|
2017-09-18 02:52:57 +02:00
|
|
|
const select = state => ({
|
|
|
|
rewards: selectClaimedRewardsByTransactionId(state),
|
2017-11-01 21:23:30 +01:00
|
|
|
myClaims: selectAllMyClaimsByOutpoint(state),
|
2017-09-18 02:52:57 +02:00
|
|
|
});
|
|
|
|
|
2017-09-04 19:35:41 +02:00
|
|
|
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-09-04 19:35:41 +02:00
|
|
|
});
|
|
|
|
|
2017-10-24 15:10:27 +02:00
|
|
|
export default connect(select, perform)(TransactionList);
|