From c11c516e14c3e5718c6b473c5ceb620037a1fde4 Mon Sep 17 00:00:00 2001 From: Sodbileg Gansukh Date: Wed, 23 Oct 2024 19:07:29 +0800 Subject: [PATCH] Made unsubscribe from all button sticky on scroll (#21381) ref DES-785 --- .../components/common/NewsletterManagement.js | 28 ++++++++++--------- .../src/components/common/ProductsSection.js | 6 ++-- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/apps/portal/src/components/common/NewsletterManagement.js b/apps/portal/src/components/common/NewsletterManagement.js index a255f3da6f..07d3336e72 100644 --- a/apps/portal/src/components/common/NewsletterManagement.js +++ b/apps/portal/src/components/common/NewsletterManagement.js @@ -183,21 +183,23 @@ export default function NewsletterManagement({ /> +
+ { + unsubscribeAll(); + }} + disabled={isDisabled} + brandColor={brandColor} + isPrimary={false} + label={t('Unsubscribe from all emails')} + isDestructive={true} + style={{width: '100%', zIndex: 900}} + dataTestId="unsubscribe-from-all-emails" + /> +