From a8170752fa85f7eec8c314abf368432a2a5ecc7c Mon Sep 17 00:00:00 2001 From: Sanne de Vries <65487235+sanne-san@users.noreply.github.com> Date: Thu, 30 May 2024 12:01:59 +0200 Subject: [PATCH] Updated newsletter subtitle settings (#20289) REF MOM-168 - Updated the settings order to reflect the newsletter order - Hid the subtitle setting if post title section is toggled off --- .../newsletters/NewsletterDetailModal.tsx | 30 ++++++++++--------- .../newsletters/NewsletterPreviewContent.tsx | 2 +- 2 files changed, 17 insertions(+), 15 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 bf4d768cdf..a053d81346 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 @@ -417,6 +417,22 @@ const Sidebar: React.FC<{ value={newsletter.title_color} onChange={color => updateNewsletter({title_color: color})} />} + + {(hasNewsletterSubtitle && newsletter.show_post_title_section) && + updateNewsletter({show_subhead: e.target.checked})} + /> + } + updateNewsletter({show_feature_image: e.target.checked})} + /> + option.value === newsletter.body_font_category)} @@ -424,20 +440,6 @@ const Sidebar: React.FC<{ title='Body style' onSelect={option => updateNewsletter({body_font_category: option?.value})} /> - {hasNewsletterSubtitle && - updateNewsletter({show_subhead: e.target.checked})} - /> - } - updateNewsletter({show_feature_image: 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 e5c32a0c87..a190df2c87 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 @@ -135,7 +135,7 @@ const NewsletterPreviewContent: React.FC<{ Your email newsletter {(hasNewsletterSubtitle && showSubhead) && ( - A subtitle that highlights the key points of your newsletter. + A subtitle can help highlight key points and engage your readers. )}
A subtitle that highlights the key points of your newsletter.
A subtitle can help highlight key points and engage your readers.