2017-06-06 23:19:12 +02:00
|
|
|
import React from "react";
|
|
|
|
import { connect } from "react-redux";
|
2017-09-04 19:35:41 +02:00
|
|
|
import { doNavigate } from "actions/navigation";
|
2017-10-27 21:42:54 +02:00
|
|
|
import { doOpenModal } from "actions/app";
|
2017-09-18 02:52:57 +02:00
|
|
|
import { selectClaimedRewardsByTransactionId } from "selectors/rewards";
|
2017-10-24 15:10:27 +02:00
|
|
|
import { selectAllMyClaimsByTxidNout } from "selectors/claims";
|
2017-06-06 23:19:12 +02:00
|
|
|
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-10-24 15:10:27 +02:00
|
|
|
myClaims: selectAllMyClaimsByTxidNout(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);
|