Skip to content

Commit df7c081

Browse files
Add Mailchimp subscription disclaimer text (#1112)
* Add Mailchimp subscribe disclaimer * remove invalid text properties * changeset --------- Co-authored-by: Addison <addison@gitbook.com>
1 parent 9f91ef7 commit df7c081

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@gitbook/integration-mailchimp': minor
3+
---
4+
5+
Add GDPR disclaimer to mailchimp block

integrations/mailchimp/src/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ type MailchimpAction =
3939
| { action: '@ui.modal.close'; listId?: string; cta?: string };
4040

4141
const DEFAULT_CTA = 'Sign up to our mailing list to receive updates!';
42+
const DEFAULT_DISCLAIMER =
43+
'By clicking Subscribe, you agree to the processing of your email address in accordance with our privacy policy.';
4244

4345
/**
4446
* A Block to subscribe to a Mailchimp mailing list.
@@ -151,6 +153,9 @@ const mailchimpSubscribe = createComponent<
151153
/>
152154
</box>
153155
</hstack>
156+
<box>
157+
<text>{DEFAULT_DISCLAIMER}</text>
158+
</box>
154159
{typeof success === 'boolean' && success === false ? (
155160
<box>
156161
<text>An error occured, the site owner has been notified</text>

0 commit comments

Comments
 (0)