lbry-desktop/ui/js/page/fileListPublished/index.js
2017-11-13 16:02:23 -05:00

25 lines
847 B
JavaScript

import React from "react";
import rewards from "rewards";
import { connect } from "react-redux";
import { doFetchClaimListMine } from "redux/actions/content";
import {
selectMyClaimsWithoutChannels,
selectIsFetchingClaimListMine,
} from "redux/selectors/claims";
import { doClaimRewardType } from "redux/actions/rewards";
import { doNavigate } from "redux/actions/navigation";
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)),
});
export default connect(select, perform)(FileListPublished);