From c6d40dfc46e9092c615c40177dcc3eed278a65f3 Mon Sep 17 00:00:00 2001 From: Charlotte Date: Fri, 29 Nov 2024 17:43:41 +0000 Subject: [PATCH] remove container overrides wrapper for FrontSection and LabsSection components since these components have container overrides inside them so are currently being duplicated unnecessarily --- dotcom-rendering/src/layouts/FrontLayout.tsx | 28 ++++++-------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/dotcom-rendering/src/layouts/FrontLayout.tsx b/dotcom-rendering/src/layouts/FrontLayout.tsx index 58db63a1e5..c2a5160946 100644 --- a/dotcom-rendering/src/layouts/FrontLayout.tsx +++ b/dotcom-rendering/src/layouts/FrontLayout.tsx @@ -430,10 +430,7 @@ export const FrontLayout = ({ front, NAV }: Props) => { : undefined; return ( - +
{decideFrontsBannerAdSlot( renderAds, hasPageSkin, @@ -493,16 +490,13 @@ export const FrontLayout = ({ front, NAV }: Props) => { mobileAdPositions, hasPageSkin, )} - +
); } if (collection.containerPalette === 'Branded') { return ( - +
{ mobileAdPositions, hasPageSkin, )} - +
); } @@ -560,10 +554,7 @@ export const FrontLayout = ({ front, NAV }: Props) => { collection.containerPalette ?? 'MediaPalette'; return ( - +
{decideFrontsBannerAdSlot( renderAds, hasPageSkin, @@ -635,15 +626,12 @@ export const FrontLayout = ({ front, NAV }: Props) => { mobileAdPositions, hasPageSkin, )} - +
); } return ( - +
{decideFrontsBannerAdSlot( renderAds, hasPageSkin, @@ -718,7 +706,7 @@ export const FrontLayout = ({ front, NAV }: Props) => { mobileAdPositions, hasPageSkin, )} - +
); })}