From a96497f7c9eac85befe9ac5942de7073fc10bb10 Mon Sep 17 00:00:00 2001 From: Erik Tiekstra Date: Wed, 12 Nov 2025 07:06:14 +0000 Subject: [PATCH] feat(BOOK-512): Added default heading from CS to destination pages Approved-by: Bianca Widstam --- .../DestinationCityPage/CityMap/index.tsx | 8 +++---- .../DestinationCityPage/index.tsx | 6 ++--- .../CountryMap/index.tsx | 9 +++----- .../DestinationCountryPage/index.tsx | 6 ++--- .../SidebarContentWrapper/index.tsx | 15 ++++--------- .../ContentType/DestinationPage/utils.ts | 22 +------------------ 6 files changed, 17 insertions(+), 49 deletions(-) diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/index.tsx index 7eaf64037..ae31fcadf 100644 --- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/index.tsx +++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/index.tsx @@ -15,21 +15,19 @@ import HotelList from "./HotelList" import styles from "./cityMap.module.css" -import type { CityLocation } from "@scandic-hotels/trpc/types/locations" - import type { MapLocation } from "@/types/components/mapLocation" interface CityMapProps { mapId: string apiKey: string - city: CityLocation + defaultHeading: string defaultLocation: MapLocation } export default function CityMap({ mapId, apiKey, - city, + defaultHeading, defaultLocation, }: CityMapProps) { const intl = useIntl() @@ -78,7 +76,7 @@ export default function CityMap({ ) : null}

- {getHeadingText(intl, city.name, "city", activeSeoFilter)} + {getHeadingText(defaultHeading, activeSeoFilter)}

diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/index.tsx index 9e6c3f6d4..f4074e7a3 100644 --- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/index.tsx +++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/index.tsx @@ -57,6 +57,7 @@ export default async function DestinationCityPage({ const { blocks, images, + heading, preamble, experiences, has_sidepeek, @@ -115,7 +116,7 @@ export default async function DestinationCityPage({ ) : ( @@ -135,9 +136,8 @@ export default async function DestinationCityPage({