From 50b6739070c3277ab264949dba39ea869508596b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fede=20=C3=81lvarez?= Date: Tue, 31 May 2022 20:00:51 +0200 Subject: [PATCH] Add CMS data to /press Media --- .../sections/newsroom/media/index.tsx | 23 +++++++++++++++---- src/lib/cms/queries/press.js | 13 +++++++++++ 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/src/components/sections/newsroom/media/index.tsx b/src/components/sections/newsroom/media/index.tsx index c5769f6..e5d8fee 100644 --- a/src/components/sections/newsroom/media/index.tsx +++ b/src/components/sections/newsroom/media/index.tsx @@ -13,13 +13,26 @@ import s from './media.module.scss' interface Props { data: { mediaHeading: string + mediaHeadingNumber: string mediaVideo01Label: string + mediaVideo01Thumb: { + url: string + } mediaVideo01Link: string mediaVideo02Label: string + mediaVideo02Thumb: { + url: string + } mediaVideo02Link: string mediaVideo03Label: string + mediaVideo03Thumb: { + url: string + } mediaVideo03Link: string mediaVideo04Label: string + mediaVideo04Thumb: { + url: string + } mediaVideo04Link: string } } @@ -73,7 +86,7 @@ const Media = ({ data }: Props) => { {data?.mediaHeading} - 04 + {data?.mediaHeadingNumber}
@@ -84,7 +97,7 @@ const Media = ({ data }: Props) => { image play { image play { image play { image