File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -196,9 +196,7 @@ const SplashCardLayout = ({
196
196
const card = cards [ 0 ] ;
197
197
if ( ! card ) return null ;
198
198
199
- // TODO: replace with live data from fronts tool - used for testing
200
- const shouldShowImmersive = false ;
201
-
199
+ const shouldShowImmersive = card . isImmersive ;
202
200
if ( shouldShowImmersive ) {
203
201
return (
204
202
< UL >
Original file line number Diff line number Diff line change @@ -250,6 +250,7 @@ export type FEFrontCard = {
250
250
display : {
251
251
isBoosted : boolean ;
252
252
boostLevel ?: BoostLevel ;
253
+ isImmersive ?: boolean ;
253
254
showBoostedHeadline : boolean ;
254
255
showQuotedHeadline : boolean ;
255
256
imageHide : boolean ;
Original file line number Diff line number Diff line change @@ -324,6 +324,7 @@ export const enhanceCards = (
324
324
snapData : enhanceSnaps ( faciaCard . enriched ) ,
325
325
isBoosted : faciaCard . display . isBoosted ,
326
326
boostLevel : faciaCard . display . boostLevel ,
327
+ isImmersive : ! ! faciaCard . display . isImmersive ,
327
328
isCrossword : faciaCard . properties . isCrossword ,
328
329
isNewsletter,
329
330
isCartoon,
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ export type DCRFrontCard = {
90
90
snapData ?: DCRSnapType ;
91
91
isBoosted ?: boolean ;
92
92
boostLevel ?: BoostLevel ;
93
+ isImmersive : boolean ;
93
94
isCrossword ?: boolean ;
94
95
isNewsletter ?: boolean ;
95
96
isCartoon ?: boolean ;
You can’t perform that action at this time.
0 commit comments