File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,7 @@ export const DecideContainer = ({
289289 absoluteServerTimes = { absoluteServerTimes }
290290 aspectRatio = { aspectRatio }
291291 sectionId = { sectionId }
292+ isInOpinionNoAvatarVariant = { isInOpinionNoAvatarVariant }
292293 />
293294 </ Island >
294295 ) ;
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ type Props = {
1717 containerType : DCRContainerType ;
1818 aspectRatio : AspectRatio ;
1919 sectionId : string ;
20+ isInOpinionNoAvatarVariant ?: boolean ;
2021} ;
2122
2223/**
@@ -35,6 +36,7 @@ export const ScrollableMedium = ({
3536 showAge,
3637 aspectRatio,
3738 sectionId,
39+ isInOpinionNoAvatarVariant,
3840} : Props ) => {
3941 return (
4042 < ScrollableCarousel
@@ -51,7 +53,12 @@ export const ScrollableMedium = ({
5153 return (
5254 < ScrollableCarousel . Item key = { trail . url } >
5355 < FrontCard
54- trail = { trail }
56+ trail = { {
57+ ...trail ,
58+ avatarUrl : isInOpinionNoAvatarVariant
59+ ? undefined
60+ : trail . avatarUrl ,
61+ } }
5562 imageLoading = { imageLoading }
5663 absoluteServerTimes = { ! ! absoluteServerTimes }
5764 containerPalette = { containerPalette }
You can’t perform that action at this time.
0 commit comments