Merged in feat/SW-1457-city-dynamic-map (pull request #1320)
feat(SW-1457): Added map and fetching hotels by cityIdentifier * feat(SW-1457): Added map and fetching hotels by cityIdentifier Approved-by: Fredrik Thorsson Approved-by: Matilda Landström
This commit is contained in:
@@ -213,20 +213,18 @@ export const getHotelsByCountry = cache(
|
||||
})
|
||||
}
|
||||
)
|
||||
export const getHotelsByCityIdentifier = cache(
|
||||
async function getMemoizedHotelsByCityIdentifier(cityIdentifier: string) {
|
||||
return serverClient().hotel.hotels.byCityIdentifier.get({
|
||||
cityIdentifier,
|
||||
})
|
||||
}
|
||||
)
|
||||
export const getDestinationCityPage = cache(
|
||||
async function getMemoizedDestinationCityPage() {
|
||||
return serverClient().contentstack.destinationCityPage.get()
|
||||
}
|
||||
)
|
||||
export const getHotelListDataByCityIdentifier = cache(
|
||||
async function getMemoizedHotelListDataByCityIdentifier(
|
||||
cityIdentifier: string
|
||||
) {
|
||||
return serverClient().contentstack.destinationCityPage.hotelList({
|
||||
cityIdentifier,
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
export const getStartPage = cache(async function getMemoizedStartPage() {
|
||||
return serverClient().contentstack.startPage.get()
|
||||
|
||||
Reference in New Issue
Block a user