From b9d484623c48dff654dbb919a7b6f460e135a481 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 29 Sep 2020 22:21:16 -0500 Subject: [PATCH] Add closed registration message fixes #177 --- .../components/registration_form.js | 23 ++++++++++++++++++- app/styles/about.scss | 16 +++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/app/soapbox/features/landing_page/components/registration_form.js b/app/soapbox/features/landing_page/components/registration_form.js index 7a2ada78a..3490e8a50 100644 --- a/app/soapbox/features/landing_page/components/registration_form.js +++ b/app/soapbox/features/landing_page/components/registration_form.js @@ -93,11 +93,32 @@ class RegistrationForm extends ImmutablePureComponent { render() { const { instance, intl } = this.props; + const isOpen = instance.get('registrations'); const isLoading = this.state.captchaLoading || this.state.submissionLoading; + if (isOpen === false) { + return ( +
+

+ +

+
+ {instance.get('title')} }} + /> +
+
+ ); + } + return ( -
+