23 lines
894 B
JavaScript
23 lines
894 B
JavaScript
import React from "react";
|
|
import { connect } from "react-redux";
|
|
import { doNavigate } from "actions/navigation";
|
|
import { doAbandonClaim, doResolveUri } from "actions/content";
|
|
import { selectClaimedRewardsByTransactionId } from "selectors/rewards";
|
|
import { selectAllMyClaimsByTxidNout } from "selectors/claims";
|
|
import { selectResolvingUris } from "selectors/content";
|
|
import TransactionList from "./view";
|
|
|
|
const select = state => ({
|
|
rewards: selectClaimedRewardsByTransactionId(state),
|
|
myClaims: selectAllMyClaimsByTxidNout(state),
|
|
resolvingUris: selectResolvingUris(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
navigate: (path, params) => dispatch(doNavigate(path, params)),
|
|
resolveUri: uri => dispatch(doResolveUri(uri)),
|
|
abandonClaim: (claimId, txid, nout) =>
|
|
dispatch(doAbandonClaim(claimId, txid, nout)),
|
|
});
|
|
|
|
export default connect(select, perform)(TransactionList);
|