27 lines
943 B
JavaScript
27 lines
943 B
JavaScript
import React from "react";
|
|
import rewards from "rewards";
|
|
import { connect } from "react-redux";
|
|
import { doFetchClaimListMine } from "actions/content";
|
|
import {
|
|
selectMyClaimsWithoutChannels,
|
|
selectIsFetchingClaimListMine,
|
|
} from "selectors/claims";
|
|
import { doClaimRewardType } from "actions/rewards";
|
|
import { doNavigate } from "actions/app";
|
|
import { doCancelAllResolvingUris } from "actions/content";
|
|
import FileListPublished from "./view";
|
|
|
|
const select = state => ({
|
|
claims: selectMyClaimsWithoutChannels(state),
|
|
isFetching: selectIsFetchingClaimListMine(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
navigate: path => dispatch(doNavigate(path)),
|
|
fetchClaims: () => dispatch(doFetchClaimListMine()),
|
|
claimFirstPublishReward: () =>
|
|
dispatch(doClaimRewardType(rewards.TYPE_FIRST_PUBLISH)),
|
|
cancelResolvingUris: () => dispatch(doCancelAllResolvingUris()),
|
|
});
|
|
|
|
export default connect(select, perform)(FileListPublished);
|