Skip to content

Commit 7b83b7d

Browse files
committed
updating containers with the showLabsRedesign prop
1 parent 816094d commit 7b83b7d

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

dotcom-rendering/src/components/DecideContainer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ export const DecideContainer = ({
249249
aspectRatio={aspectRatio}
250250
collectionId={collectionId}
251251
isInHideTrailsAbTest={!!isInHideTrailsAbTest}
252+
showLabsRedesign={showLabsRedesign}
252253
/>
253254
);
254255
case 'flexible/general':

dotcom-rendering/src/components/FlexibleSpecial.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type Props = {
3131
containerLevel?: DCRContainerLevel;
3232
collectionId: number;
3333
isInHideTrailsAbTest?: boolean;
34+
showLabsRedesign?: boolean;
3435
};
3536

3637
type BoostProperties = {
@@ -128,6 +129,7 @@ type OneCardLayoutProps = {
128129
containerLevel: DCRContainerLevel;
129130
isSplashCard?: boolean;
130131
isInHideTrailsAbTest?: boolean;
132+
showLabsRedesign?: boolean;
131133
};
132134

133135
export const OneCardLayout = ({
@@ -142,6 +144,7 @@ export const OneCardLayout = ({
142144
containerLevel,
143145
isSplashCard,
144146
isInHideTrailsAbTest,
147+
showLabsRedesign,
145148
}: OneCardLayoutProps) => {
146149
const card = cards[0];
147150
if (!card) return null;
@@ -194,6 +197,7 @@ export const OneCardLayout = ({
194197
showKickerImage={card.format.design === ArticleDesign.Audio}
195198
headlinePosition={isSplashCard ? 'outer' : 'inner'}
196199
isInHideTrailsAbTest={isInHideTrailsAbTest}
200+
showLabsRedesign={showLabsRedesign} // ← Add this!
197201
/>
198202
</LI>
199203
</UL>
@@ -222,6 +226,7 @@ type TwoOrFourCardLayoutProps = {
222226
isFirstRow: boolean;
223227
containerLevel: DCRContainerLevel;
224228
isInHideTrailsAbTest?: boolean;
229+
showLabsRedesign?: boolean;
225230
};
226231

227232
const TwoOrFourCardLayout = ({
@@ -235,6 +240,7 @@ const TwoOrFourCardLayout = ({
235240
isFirstRow,
236241
containerLevel,
237242
isInHideTrailsAbTest,
243+
showLabsRedesign,
238244
}: TwoOrFourCardLayoutProps) => {
239245
if (cards.length === 0) return null;
240246
const hasTwoOrFewerCards = cards.length <= 2;
@@ -276,6 +282,7 @@ const TwoOrFourCardLayout = ({
276282
}
277283
canPlayInline={false}
278284
isInHideTrailsAbTest={isInHideTrailsAbTest}
285+
showLabsRedesign={showLabsRedesign}
279286
/>
280287
</LI>
281288
);
@@ -294,6 +301,7 @@ export const FlexibleSpecial = ({
294301
containerLevel = 'Primary',
295302
collectionId,
296303
isInHideTrailsAbTest,
304+
showLabsRedesign,
297305
}: Props) => {
298306
const snaps = [...groupedTrails.snap].slice(0, 1).map((snap) => ({
299307
...snap,
@@ -323,6 +331,7 @@ export const FlexibleSpecial = ({
323331
containerLevel={containerLevel}
324332
isSplashCard={false}
325333
isInHideTrailsAbTest={isInHideTrailsAbTest}
334+
showLabsRedesign={showLabsRedesign}
326335
/>
327336
)}
328337
{isNonEmptyArray(splash) && (
@@ -351,6 +360,7 @@ export const FlexibleSpecial = ({
351360
isFirstRow={!isNonEmptyArray(snaps) && !isNonEmptyArray(splash)}
352361
containerLevel={containerLevel}
353362
isInHideTrailsAbTest={isInHideTrailsAbTest}
363+
showLabsRedesign={showLabsRedesign} // ← Add this!
354364
/>
355365
</>
356366
);

dotcom-rendering/src/components/FrontSection.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,6 @@ export const FrontSection = ({
635635
*/
636636
return (
637637
<ContainerOverrides containerPalette={containerPalette}>
638-
<div>TOP OF FRONTSECITON COMP</div>
639638
<section
640639
id={sectionId}
641640
data-link-name={ophanComponentLink}

dotcom-rendering/src/layouts/FrontLayout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ export const FrontLayout = ({ front, NAV }: Props) => {
227227
hasPageSkin={hasPageSkin}
228228
hasPageSkinContentSelfConstrain={true}
229229
pageId={pageId}
230+
wholePictureLogoSwitch={
231+
front.config.switches.wholePictureLogo
232+
}
230233
/>
231234

232235
{isPaidContent && (

0 commit comments

Comments
 (0)