From ea08fad73fe1980034cbf5a9ade4411aaef076ad Mon Sep 17 00:00:00 2001 From: Andy E Phipps Date: Mon, 28 Oct 2024 15:51:16 +0000 Subject: [PATCH] fix: pass additional props to allow Styled Components to work on MPs (#676) --- .../MarketingPreferencesDS/_MarketingPreferencesDS.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Organisms/MarketingPreferencesDS/_MarketingPreferencesDS.js b/src/components/Organisms/MarketingPreferencesDS/_MarketingPreferencesDS.js index 09416475..f56ede29 100644 --- a/src/components/Organisms/MarketingPreferencesDS/_MarketingPreferencesDS.js +++ b/src/components/Organisms/MarketingPreferencesDS/_MarketingPreferencesDS.js @@ -19,7 +19,8 @@ const MarketingPreferencesDS = ({ copyBottom = defaultCopyBottom, mpValidationOptions, id = null, - formContext = null + formContext = null, + ...rest }) => { const { formState: { errors }, control } = formContext; @@ -61,7 +62,7 @@ const MarketingPreferencesDS = ({ const customId = id ? `marketing-preferences--${id}` : 'marketing-preferences'; return ( - + {copyTop && {copyTop}} {/* Render Email checkboxes and input if not removed in config */}