From 5b755197af94960bbfe458841a2c9b4f0ce543f6 Mon Sep 17 00:00:00 2001 From: Borghild Selle <104756130+BorghildSelle@users.noreply.github.com> Date: Tue, 26 Nov 2024 10:36:56 +0100 Subject: [PATCH] :art: change to h2 and some spacing #2692 (#2693) * :art: change to h2 and some spacing * :art: remove console --- web/templates/newsroom/sanity/NewsroomSanity.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/web/templates/newsroom/sanity/NewsroomSanity.tsx b/web/templates/newsroom/sanity/NewsroomSanity.tsx index fd3f115f3..4f1aa0a29 100644 --- a/web/templates/newsroom/sanity/NewsroomSanity.tsx +++ b/web/templates/newsroom/sanity/NewsroomSanity.tsx @@ -36,6 +36,7 @@ const NewsRoomTemplateSanity = forwardRef(fu localNewsPages, fallbackImages, } = pageData || {} + const intl = useIntl() const router = useRouter() const { locale } = router @@ -116,10 +117,10 @@ const NewsRoomTemplateSanity = forwardRef(fu
-
- {title && } +
+ {title && } {ingress && } -
+
(fu {localNewsPages && localNewsPages?.length > 0 && localNewsPages?.map((localNewsPage) => { - return localNewsPage?.link?.slug ? ( + return localNewsPage?.link?.slug || localNewsPage?.href ? ( - + {localNewsPage?.label}