import React from 'react'; import BusyIndicator from 'component/common/busy-indicator'; import InviteNew from 'component/inviteNew'; import InviteList from 'component/inviteList'; import Page from 'component/page'; class InvitePage extends React.PureComponent { componentWillMount() { this.props.fetchInviteStatus(); } render() { const { isPending, isFailed } = this.props; return ( {isPending && } {!isPending && isFailed && {__('Failed to retrieve invite status.')}} {!isPending && !isFailed && ( )} ); } } export default InvitePage;