Skip to content

Commit c067d5e

Browse files
Make isApps required prop for MainMedia
1 parent 01e8d98 commit c067d5e

9 files changed

Lines changed: 10 additions & 2 deletions

File tree

dotcom-rendering/src/components/MainMedia.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ type Props = {
9797
shouldHideAds: boolean;
9898
contentType?: string;
9999
contentLayout?: string;
100-
isApps?: boolean;
100+
isApps: boolean;
101101
};
102102

103103
export const MainMedia = ({
@@ -115,7 +115,7 @@ export const MainMedia = ({
115115
shouldHideAds,
116116
contentType,
117117
contentLayout,
118-
isApps = false,
118+
isApps,
119119
}: Props) => {
120120
const audioData = getAudioData(elements);
121121

dotcom-rendering/src/layouts/CommentLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ export const CommentLayout = (props: WebProps | AppsProps) => {
380380
isSensitive={article.config.isSensitive}
381381
editionId={article.editionId}
382382
shouldHideAds={article.shouldHideAds}
383+
isApps={isApps}
383384
/>
384385
</div>
385386
</GridItem>

dotcom-rendering/src/layouts/HostedArticleLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ export const HostedArticleLayout = (props: WebProps | AppProps) => {
237237
hideCaption={true}
238238
shouldHideAds={true}
239239
contentType={frontendData.contentType}
240+
isApps={renderingTarget === 'Apps'}
240241
/>
241242
</div>
242243

dotcom-rendering/src/layouts/HostedVideoLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ export const HostedVideoLayout = (props: WebProps | AppProps) => {
222222
hideCaption={true}
223223
shouldHideAds={true}
224224
contentType={frontendData.contentType}
225+
isApps={renderingTarget === 'Apps'}
225226
/>
226227
</div>
227228

dotcom-rendering/src/layouts/ImmersiveLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ export const ImmersiveLayout = (props: WebProps | AppProps) => {
378378
isSensitive={article.config.isSensitive}
379379
editionId={article.editionId}
380380
shouldHideAds={article.shouldHideAds}
381+
isApps={isApps}
381382
/>
382383
</div>
383384
{mainMedia && (

dotcom-rendering/src/layouts/InteractiveLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ export const InteractiveLayout = (props: WebProps | AppsProps) => {
341341
isSensitive={article.config.isSensitive}
342342
editionId={article.editionId}
343343
shouldHideAds={article.shouldHideAds}
344+
isApps={isApps}
344345
/>
345346
</div>
346347
</GridItem>

dotcom-rendering/src/layouts/LiveLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ export const LiveLayout = (props: WebProps | AppsProps) => {
604604
article.shouldHideAds
605605
}
606606
contentLayout="LiveblogLayout"
607+
isApps={isApps}
607608
/>
608609
</div>
609610
</GridItem>

dotcom-rendering/src/layouts/NewsletterSignupLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ export const NewsletterSignupLayout = ({
417417
hideCaption={true}
418418
editionId={article.editionId}
419419
shouldHideAds={article.shouldHideAds}
420+
isApps={renderingTarget === 'Apps'}
420421
/>
421422
</div>
422423
</Column>

dotcom-rendering/src/layouts/PictureLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ export const PictureLayout = (props: WebProps | AppsProps) => {
437437
isSensitive={article.config.isSensitive}
438438
editionId={article.editionId}
439439
shouldHideAds={article.shouldHideAds}
440+
isApps={isApps}
440441
/>
441442
</div>
442443
</GridItem>

0 commit comments

Comments
 (0)