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

20 lines
697 B
JavaScript
Raw Normal View History

2017-06-06 23:19:12 +02:00
import React from "react";
import { connect } from "react-redux";
import { doNavigate } from "actions/navigation";
2017-10-27 21:42:54 +02:00
import { doOpenModal } from "actions/app";
import { selectClaimedRewardsByTransactionId } from "selectors/rewards";
2017-11-01 21:23:30 +01:00
import { selectAllMyClaimsByOutpoint } from "selectors/claims";
2017-06-06 23:19:12 +02:00
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);