lbry-desktop/ui/js/page/rewards/index.js

21 lines
655 B
JavaScript
Raw Normal View History

2017-06-08 02:56:52 +02:00
import React from "react";
import { connect } from "react-redux";
import { doNavigate } from "actions/app";
2017-06-08 23:15:34 +02:00
import { selectFetchingRewards, selectRewards } from "selectors/rewards";
2017-06-03 01:09:52 +02:00
import {
2017-06-08 02:56:52 +02:00
selectUserIsRewardEligible,
selectUserHasEmail,
selectUserIsVerificationCandidate,
} from "selectors/user";
import RewardsPage from "./view";
2017-05-26 10:53:32 +02:00
2017-06-08 02:56:52 +02:00
const select = state => ({
2017-05-26 10:53:32 +02:00
fetching: selectFetchingRewards(state),
rewards: selectRewards(state),
2017-06-08 02:56:52 +02:00
hasEmail: selectUserHasEmail(state),
isEligible: selectUserIsRewardEligible(state),
isVerificationCandidate: selectUserIsVerificationCandidate(state),
});
2017-05-26 10:53:32 +02:00
2017-06-08 02:56:52 +02:00
export default connect(select, null)(RewardsPage);