From acc3eca205f66c397cfc8df9819fecd1814b01fb Mon Sep 17 00:00:00 2001 From: Anna Beddow Date: Tue, 17 Dec 2024 09:09:50 +0000 Subject: [PATCH] Correct types (#13016) --- dotcom-rendering/src/components/FrontCard.tsx | 1 + dotcom-rendering/src/types/front.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dotcom-rendering/src/components/FrontCard.tsx b/dotcom-rendering/src/components/FrontCard.tsx index 1eb93841c0..6c5891e8a8 100644 --- a/dotcom-rendering/src/components/FrontCard.tsx +++ b/dotcom-rendering/src/components/FrontCard.tsx @@ -56,6 +56,7 @@ export const FrontCard = (props: Props) => { showLivePlayable: trail.showLivePlayable, showMainVideo: trail.showMainVideo, galleryCount: trail.galleryCount, + podcastImage: trail.podcastImage, }; return Card({ ...defaultProps, ...cardProps }); diff --git a/dotcom-rendering/src/types/front.ts b/dotcom-rendering/src/types/front.ts index fdd565d528..b09b700741 100644 --- a/dotcom-rendering/src/types/front.ts +++ b/dotcom-rendering/src/types/front.ts @@ -11,7 +11,7 @@ import type { BoostLevel, Image, StarRating } from './content'; import type { FooterType } from './footer'; import type { FEFormat, FENavType } from './frontend'; import type { MainMedia } from './mainMedia'; -import type { FETagType } from './tag'; +import type { FETagType, PodcastSeriesImage } from './tag'; import type { Territory } from './territory'; import type { FETrailType, TrailType } from './trails'; @@ -348,8 +348,8 @@ export type DCRFrontCard = { branding?: Branding; slideshowImages?: DCRSlideshowImage[]; showMainVideo?: boolean; - podcastImageSrc?: string; galleryCount?: number; + podcastImage?: PodcastSeriesImage; }; export type DCRSlideshowImage = {