@@ -21,7 +21,6 @@ import type { ResponsiveFontSize } from './CardHeadline';
21
21
import type { Loading } from './CardPicture' ;
22
22
import { FeatureCard } from './FeatureCard' ;
23
23
import { FrontCard } from './FrontCard' ;
24
- import { Hide } from './Hide' ;
25
24
import type { Alignment } from './SupportingContent' ;
26
25
27
26
type Props = {
@@ -33,7 +32,7 @@ type Props = {
33
32
aspectRatio : AspectRatio ;
34
33
containerLevel ?: DCRContainerLevel ;
35
34
collectionId : number ;
36
- isInNoBoostsAbTestVariant ?: boolean ;
35
+ isInOpinionNoAvatarVariant ?: boolean ;
37
36
} ;
38
37
39
38
type RowLayout = 'oneCardHalfWidth' | 'oneCardFullWidth' | 'twoCard' ;
@@ -582,7 +581,7 @@ export const FlexibleGeneral = ({
582
581
aspectRatio,
583
582
containerLevel = 'Primary' ,
584
583
collectionId,
585
- isInNoBoostsAbTestVariant ,
584
+ isInOpinionNoAvatarVariant ,
586
585
} : Props ) => {
587
586
const splash = [ ...groupedTrails . splash ] . slice ( 0 , 1 ) . map ( ( snap ) => ( {
588
587
...snap ,
@@ -594,6 +593,9 @@ export const FlexibleGeneral = ({
594
593
. map ( ( standard , i ) => ( {
595
594
...standard ,
596
595
uniqueId : `collection-${ collectionId } -standard-${ i } ` ,
596
+ avatarUrl : isInOpinionNoAvatarVariant
597
+ ? undefined
598
+ : standard . avatarUrl ,
597
599
} ) ) ;
598
600
599
601
const groupedCards = decideCardPositions ( cards ) ;
@@ -616,48 +618,7 @@ export const FlexibleGeneral = ({
616
618
{ groupedCards . map ( ( row , i ) => {
617
619
switch ( row . layout ) {
618
620
case 'oneCardFullWidth' :
619
- return isInNoBoostsAbTestVariant ? (
620
- < >
621
- < Hide when = "above" breakpoint = "tablet" >
622
- < HalfWidthCardLayout
623
- key = { row . cards [ 0 ] ?. uniqueId }
624
- cards = { row . cards }
625
- containerPalette = { containerPalette }
626
- showAge = { showAge }
627
- absoluteServerTimes = {
628
- absoluteServerTimes
629
- }
630
- imageLoading = { imageLoading }
631
- isFirstRow = { ! splash . length && i === 0 }
632
- isFirstStandardRow = { i === 0 }
633
- aspectRatio = { aspectRatio }
634
- isLastRow = {
635
- i === groupedCards . length - 1
636
- }
637
- containerLevel = { containerLevel }
638
- />
639
- </ Hide >
640
- < Hide when = "below" breakpoint = "tablet" >
641
- < FullWidthCardLayout
642
- key = { row . cards [ 0 ] ?. uniqueId }
643
- cards = { row . cards }
644
- containerPalette = { containerPalette }
645
- showAge = { showAge }
646
- absoluteServerTimes = {
647
- absoluteServerTimes
648
- }
649
- imageLoading = { imageLoading }
650
- aspectRatio = { aspectRatio }
651
- isFirstRow = { ! splash . length && i === 0 }
652
- isLastRow = {
653
- i === groupedCards . length - 1
654
- }
655
- containerLevel = { containerLevel }
656
- collectionId = { collectionId }
657
- />
658
- </ Hide >
659
- </ >
660
- ) : (
621
+ return (
661
622
< FullWidthCardLayout
662
623
key = { row . cards [ 0 ] ?. uniqueId }
663
624
cards = { row . cards }
0 commit comments