0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Refined styles for invite only modal

This commit is contained in:
Peter Zimon 2021-04-28 12:54:11 +02:00
parent 4a0f3c2403
commit d8d2accfe4

View file

@ -469,18 +469,19 @@ class SignupPage extends React.Component {
}
render() {
const {site} = this.context;
const plansData = this.getPlans();
const fields = this.getInputFields({state: this.state});
let sectionClass = '';
let footerClass = '';
if (plansData.length <= 1) {
if ((plansData.length === 1 && plansData[0].type === 'free') || plansData.length === 0) {
if (plansData.length <= 1 || isInviteOnlySite({site})) {
if ((plansData.length === 1 && plansData[0].type === 'free') || plansData.length === 0 || isInviteOnlySite({site})) {
sectionClass = 'noplan';
if (fields.length === 1) {
sectionClass = 'single-field';
}
if (plansData.length === 0) {
if (plansData.length === 0 || isInviteOnlySite({site})) {
footerClass = 'invite-only';
sectionClass = 'invite-only';
}