From dc2db794cc8cde41d4416529c12494eba75b7eb1 Mon Sep 17 00:00:00 2001 From: Anna Beddow Date: Tue, 22 Oct 2024 09:38:52 +0100 Subject: [PATCH] Update types --- dotcom-rendering/src/components/YoutubeAtom/YoutubeAtom.tsx | 3 ++- .../src/components/YoutubeBlockComponent.importable.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dotcom-rendering/src/components/YoutubeAtom/YoutubeAtom.tsx b/dotcom-rendering/src/components/YoutubeAtom/YoutubeAtom.tsx index f3cf02ee12..25ef815930 100644 --- a/dotcom-rendering/src/components/YoutubeAtom/YoutubeAtom.tsx +++ b/dotcom-rendering/src/components/YoutubeAtom/YoutubeAtom.tsx @@ -7,6 +7,7 @@ import type { ImagePositionType, ImageSizeType, } from '../Card/components/ImageWrapper'; +import { AspectRatio } from '../CardPicture'; import { MaintainAspectRatio } from '../MaintainAspectRatio'; import type { VideoCategory } from './YoutubeAtomOverlay'; import { YoutubeAtomOverlay } from './YoutubeAtomOverlay'; @@ -51,7 +52,7 @@ export type Props = { imageSize: ImageSizeType; imagePositionOnMobile: ImagePositionType; renderingTarget: RenderingTarget; - aspectRatio?: string; + aspectRatio?: AspectRatio; }; export const YoutubeAtom = ({ diff --git a/dotcom-rendering/src/components/YoutubeBlockComponent.importable.tsx b/dotcom-rendering/src/components/YoutubeBlockComponent.importable.tsx index 05751b513e..7d63199e2e 100644 --- a/dotcom-rendering/src/components/YoutubeBlockComponent.importable.tsx +++ b/dotcom-rendering/src/components/YoutubeBlockComponent.importable.tsx @@ -8,6 +8,7 @@ import type { ImagePositionType, ImageSizeType, } from './Card/components/ImageWrapper'; +import { AspectRatio } from './CardPicture'; import { useConfig } from './ConfigContext'; import { ophanTrackerApps, ophanTrackerWeb } from './YoutubeAtom/eventEmitters'; import { YoutubeAtom } from './YoutubeAtom/YoutubeAtom'; @@ -40,7 +41,7 @@ type Props = { imageSize?: ImageSizeType; imagePositionOnMobile?: ImagePositionType; enableAds: boolean; - aspectRatio?: string; + aspectRatio?: AspectRatio; }; /**