🐛Fixed signup button and icon in invite mode

refs https://github.com/TryGhost/Team/issues/579

We added a new setting to explicitly set `invite-only` mode which was not handled in the signup button and header icon for signup page
This commit is contained in:
Rishabh 2021-04-28 15:51:02 +05:30
parent c4aee97469
commit a1506b824f

View File

@ -336,7 +336,7 @@ class SignupPage extends React.Component {
const {action, site, brandColor, pageQuery} = this.context;
const availablePlans = getSitePlans({site, pageQuery});
if (availablePlans.length === 0) {
if (availablePlans.length === 0 || isInviteOnlySite({site})) {
return null;
}
@ -440,7 +440,7 @@ class SignupPage extends React.Component {
return (
<img className='gh-portal-signup-logo' src={siteLogo} alt={site.title} />
);
} else if (plansData.length === 0) {
} else if (plansData.length === 0 || isInviteOnlySite({site})) {
return (
<InvitationIcon className='gh-portal-icon gh-portal-icon-invitation' />
);