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

20 lines
548 B
JavaScript
Raw Normal View History

2017-08-18 05:31:44 +02:00
import React from "react";
import { connect } from "react-redux";
import InvitePage from "./view";
2017-11-13 22:02:23 +01:00
import { doFetchInviteStatus } from "redux/actions/user";
2017-08-18 05:31:44 +02:00
import {
selectUserInviteStatusFailed,
selectUserInviteStatusIsPending,
2017-11-13 22:02:23 +01:00
} from "redux/selectors/user";
2017-08-18 05:31:44 +02:00
const select = state => ({
isFailed: selectUserInviteStatusFailed(state),
isPending: selectUserInviteStatusIsPending(state),
});
const perform = dispatch => ({
fetchInviteStatus: () => dispatch(doFetchInviteStatus()),
});
export default connect(select, perform)(InvitePage);