Skip to content

Commit

Permalink
fix: pass additional props to allow Styled Components to work on MPs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyEPhipps authored Oct 28, 2024
1 parent 99bcf36 commit ea08fad
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const MarketingPreferencesDS = ({
copyBottom = defaultCopyBottom,
mpValidationOptions,
id = null,
formContext = null
formContext = null,
...rest
}) => {
const { formState: { errors }, control } = formContext;

Expand Down Expand Up @@ -61,7 +62,7 @@ const MarketingPreferencesDS = ({
const customId = id ? `marketing-preferences--${id}` : 'marketing-preferences';

return (
<OuterWrapper id={customId}>
<OuterWrapper id={customId} {...rest}>
{copyTop && <TopCopyWrapper>{copyTop}</TopCopyWrapper>}

{/* Render Email checkboxes and input if not removed in config */}
Expand Down

0 comments on commit ea08fad

Please sign in to comment.