19 lines
536 B
JavaScript
19 lines
536 B
JavaScript
import React from "react";
|
|
import { connect } from "react-redux";
|
|
import InvitePage from "./view";
|
|
import { doFetchInviteStatus } from "actions/user";
|
|
import {
|
|
selectUserInviteStatusFailed,
|
|
selectUserInviteStatusIsPending,
|
|
} from "selectors/user";
|
|
|
|
const select = state => ({
|
|
isFailed: selectUserInviteStatusFailed(state),
|
|
isPending: selectUserInviteStatusIsPending(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
fetchInviteStatus: () => dispatch(doFetchInviteStatus()),
|
|
});
|
|
|
|
export default connect(select, perform)(InvitePage);
|