2017-12-21 22:08:54 +01:00
|
|
|
import React from 'react';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import InvitePage from './view';
|
|
|
|
import { doFetchInviteStatus } from 'redux/actions/user';
|
2017-08-18 05:31:44 +02:00
|
|
|
import {
|
|
|
|
selectUserInviteStatusFailed,
|
|
|
|
selectUserInviteStatusIsPending,
|
2017-12-21 22:08:54 +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);
|