From 277e169f7b8c00f004fe837dedadd5d3bf3919ad Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Wed, 22 May 2024 13:14:28 +0200 Subject: [PATCH] Fixed static copy in newsletter preview (#20238) DES-342 A static site title ("The Local Host") was displayed in the newsletter preview instead of the actual site title. Also, moved over the "Support independent publishing" button to design tab in newsletter settings. --- .../newsletters/NewsletterDetailModal.tsx | 41 +++++++++---------- .../newsletters/NewsletterPreviewContent.tsx | 2 +- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/apps/admin-x-settings/src/components/settings/email/newsletters/NewsletterDetailModal.tsx b/apps/admin-x-settings/src/components/settings/email/newsletters/NewsletterDetailModal.tsx index af79431360..fa6b1a38c3 100644 --- a/apps/admin-x-settings/src/components/settings/email/newsletters/NewsletterDetailModal.tsx +++ b/apps/admin-x-settings/src/components/settings/email/newsletters/NewsletterDetailModal.tsx @@ -251,27 +251,6 @@ const Sidebar: React.FC<{ onChange={e => updateNewsletter({subscribe_on_signup: e.target.checked})} /> - -
- - - -
- - Promote independent publishing - Show you’re a part of the indie publishing movement with a small badge in the footer -
- } - labelStyle='value' - onChange={e => updateNewsletter({show_badge: e.target.checked})} - /> - - -
{newsletter.status === 'active' ? (!onlyOne &&
@@ -488,6 +467,26 @@ const Sidebar: React.FC<{ onChange={html => updateNewsletter({footer_content: html})} /> + +
+ + + +
+ + Promote independent publishing + Show you’re a part of the indie publishing movement with a small badge in the footer +
+ } + labelStyle='value' + onChange={e => updateNewsletter({show_badge: e.target.checked})} + /> + + } ]; diff --git a/apps/admin-x-settings/src/components/settings/email/newsletters/NewsletterPreviewContent.tsx b/apps/admin-x-settings/src/components/settings/email/newsletters/NewsletterPreviewContent.tsx index 0bffd1434a..a7c36862e0 100644 --- a/apps/admin-x-settings/src/components/settings/email/newsletters/NewsletterPreviewContent.tsx +++ b/apps/admin-x-settings/src/components/settings/email/newsletters/NewsletterPreviewContent.tsx @@ -230,7 +230,7 @@ const NewsletterPreviewContent: React.FC<{ {showSubscriptionDetails && (

Subscription details

-

You are receiving this because you are a paid subscriber to The Local Host. Your subscription will renew on 17 Jul 2024.

+

You are receiving this because you are a paid subscriber to {siteTitle}. Your subscription will renew on 17 Jul 2024.

Name: Jamie Larson