Merged in feat/SW-2241-country-map (pull request #2808)

Feat/SW-2241 country map

Approved-by: Erik Tiekstra
Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
Matilda Landström
2025-09-24 12:04:01 +00:00
parent af4f544b8a
commit 00689607bc
93 changed files with 1876 additions and 600 deletions

View File

@@ -23,6 +23,10 @@ query GetDestinationCityListData($locale: String!, $cityIdentifier: String!) {
city_norway
city_poland
city_sweden
location {
longitude
latitude
}
}
sort_order
preamble

View File

@@ -138,7 +138,9 @@ export async function getCityPages(
lang,
city.cityIdentifier
)
return data ? { ...data, cityName: city.name } : null
return data
? { ...data, cityName: city.name, cityIdentifier: city.cityIdentifier }
: null
})
)

View File

@@ -4,7 +4,7 @@ export const mapLocationSchema = z
.object({
longitude: z.number().nullable(),
latitude: z.number().nullable(),
default_zoom: z.number().nullable(),
default_zoom: z.number().nullish(),
})
.nullish()
.transform((val) => {

View File

@@ -39,6 +39,8 @@ export interface CityPageUrlsData extends z.output<typeof cityPageUrlsSchema> {}
export interface DestinationCityListItem extends DestinationCityListData {
cityName: string
cityIdentifier: string
hotelsCount?: number
}
export type Block = z.output<typeof blocksSchema>