feat(SW-340): Added HotelCardDialog component
This commit is contained in:
@@ -95,14 +95,15 @@ export function getHotelPins(hotels: HotelData[]): HotelPin[] {
|
||||
lng: hotel.hotelData.location.longitude,
|
||||
},
|
||||
name: hotel.hotelData.name,
|
||||
price: hotel.price
|
||||
? `${Math.min(
|
||||
parseFloat(hotel.price.memberAmount ?? "Infinity"),
|
||||
parseFloat(hotel.price.regularAmount ?? "Infinity")
|
||||
)}`
|
||||
: "N/A",
|
||||
currency: hotel.price?.currency || "Unknown",
|
||||
image: "default-image-url",
|
||||
publicPrice: hotel.price?.regularAmount ?? null,
|
||||
memberPrice: hotel.price?.memberAmount ?? null,
|
||||
currency: hotel.price?.currency || null,
|
||||
images: [
|
||||
hotel.hotelData.hotelContent.images,
|
||||
...(hotel.hotelData.gallery?.heroImages ?? []),
|
||||
],
|
||||
amenities: hotel.hotelData.detailedFacilities.slice(0, 3),
|
||||
ratings: hotel.hotelData.ratings?.tripAdvisor.rating ?? null,
|
||||
}))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user