: null}
+ {!isFormDisabled &&
}
>
: null}
{subscribeMessage ?
@@ -116,7 +133,7 @@ export function NewsletterSignUpForm({
}
-const EducatorCheckbox = ({educatorCheck, setEducatorCheck}) => {
+const EducatorCheckbox = ({educatorCheck, setEducatorCheck, disabled}) => {
return (
@@ -125,6 +142,7 @@ const EducatorCheckbox = ({educatorCheck, setEducatorCheck}) => {
className="educatorNewsletterInput"
id="educator-check-en"
checked={educatorCheck}
+ disabled={disabled}
onChange={e => setEducatorCheck(!!e.target.checked)}/>
@@ -134,6 +152,7 @@ const EducatorCheckbox = ({educatorCheck, setEducatorCheck}) => {
className="educatorNewsletterInput"
id="educator-check-he"
checked={educatorCheck}
+ disabled={disabled}
onChange={e => setEducatorCheck(!!e.target.checked)}/>