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})} + /> +