Merged in fix/remove-cities-without-hotels (pull request #1493)
fix: remove cities that don't have a city page * fix: remove cities that don't have a city page Approved-by: Erik Tiekstra
This commit is contained in:
+5
-3
@@ -5,12 +5,14 @@ export type DestinationsData = {
|
||||
cities: {
|
||||
id: string
|
||||
name: string
|
||||
hotelIds: string[] | null
|
||||
hotelIds: string[]
|
||||
hotelCount: number
|
||||
url: string | undefined
|
||||
url: string
|
||||
}[]
|
||||
}[]
|
||||
|
||||
export type Cities = DestinationsData[number]["cities"]
|
||||
|
||||
export type HotelsSectionProps = {
|
||||
destinations: DestinationsData
|
||||
}
|
||||
@@ -23,5 +25,5 @@ export type DestinationProps = {
|
||||
country: string
|
||||
countryUrl: string | undefined
|
||||
numberOfHotels: number
|
||||
cities: DestinationsData[number]["cities"]
|
||||
cities: Cities
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user