@@ -186,7 +186,6 @@ type Props = {
186186 discussionApiUrl : string ;
187187 absoluteServerTimes : boolean ;
188188 renderingTarget : RenderingTarget ;
189- shouldHaveSingleSection ?: boolean ;
190189} ;
191190
192191/**
@@ -222,7 +221,6 @@ export const OnwardsUpper = ({
222221 discussionApiUrl,
223222 absoluteServerTimes,
224223 renderingTarget,
225- shouldHaveSingleSection = false ,
226224} : Props ) => {
227225 const isHorizontalScrollingSupported = useIsHorizontalScrollingSupported ( ) ;
228226
@@ -339,40 +337,32 @@ export const OnwardsUpper = ({
339337 />
340338 </ Section >
341339 ) }
342- { ! ! curatedDataUrl &&
343- ! isPaidContent &&
344- canHaveCuratedContent && (
345- < Section
346- fullWidth = { true }
347- borderColour = { palette ( '--article-section-border' ) }
348- showTopBorder = {
349- format . design === ArticleDesign . Gallery
350- ? false
351- : true
352- }
353- showSideBorders = {
354- format . design === ArticleDesign . Gallery
355- ? false
356- : true
357- }
358- padSides = {
359- format . design === ArticleDesign . Gallery
360- ? false
361- : true
362- }
363- >
364- < FetchOnwardsData
365- url = { curatedDataUrl }
366- limit = { 20 }
367- onwardsSource = "curated-content"
368- format = { format }
369- discussionApiUrl = { discussionApiUrl }
370- absoluteServerTimes = { absoluteServerTimes }
371- renderingTarget = { renderingTarget }
372- isAdFreeUser = { isAdFreeUser }
373- />
374- </ Section >
375- ) }
340+ { ! ! curatedDataUrl && ! isPaidContent && canHaveCuratedContent && (
341+ < Section
342+ fullWidth = { true }
343+ borderColour = { palette ( '--article-section-border' ) }
344+ showTopBorder = {
345+ format . design === ArticleDesign . Gallery ? false : true
346+ }
347+ showSideBorders = {
348+ format . design === ArticleDesign . Gallery ? false : true
349+ }
350+ padSides = {
351+ format . design === ArticleDesign . Gallery ? false : true
352+ }
353+ >
354+ < FetchOnwardsData
355+ url = { curatedDataUrl }
356+ limit = { 20 }
357+ onwardsSource = "curated-content"
358+ format = { format }
359+ discussionApiUrl = { discussionApiUrl }
360+ absoluteServerTimes = { absoluteServerTimes }
361+ renderingTarget = { renderingTarget }
362+ isAdFreeUser = { isAdFreeUser }
363+ />
364+ </ Section >
365+ ) }
376366 </ div >
377367 ) ;
378368} ;
0 commit comments