diff --git a/src/containers/newsletter/index.tsx b/src/containers/newsletter/index.tsx index b66bd10..edfc310 100644 --- a/src/containers/newsletter/index.tsx +++ b/src/containers/newsletter/index.tsx @@ -56,7 +56,6 @@ export const NewsletterSchema = z.object({ privacyPolicy: z.boolean().refine((value) => value, { message: 'Privacy policy must be accepted', }), - updates: z.boolean().optional(), organizationType: z.enum(ORGANIZATION_TYPES_VALUES), otherOrganization: z.string().optional(), }); @@ -85,7 +84,6 @@ export default function Newsletter() { email: '', organizationType: undefined, privacyPolicy: false, - updates: false, }, mode: 'onSubmit', }); @@ -234,37 +232,26 @@ export default function Newsletter() { )} /> - ( - - -
- - -
-
-
- )} - /> -
+
+ {['idle', 'loading'].includes(subscribedStatus) && ( +

+ Subscribe to stay connected! By clicking the button, you'll join the + more4nature mailing list and receive occasional updates directly to your inbox. + You can unsubscribe at any time. +

+ )} {!['subscribed', 'error'].includes(subscribedStatus) && ( - )} + {subscribedStatus === 'subscribed' &&

Thank you for subscribing.

} {subscribedStatus === 'error' && (

There was an error subscribing to the newsletter. Please, try again