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:
@@ -23,6 +23,10 @@ query GetDestinationCityListData($locale: String!, $cityIdentifier: String!) {
|
||||
city_norway
|
||||
city_poland
|
||||
city_sweden
|
||||
location {
|
||||
longitude
|
||||
latitude
|
||||
}
|
||||
}
|
||||
sort_order
|
||||
preamble
|
||||
|
||||
@@ -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
|
||||
})
|
||||
)
|
||||
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user