feat(SW-415): Improvements
This commit is contained in:
@@ -57,22 +57,14 @@ export default function RoomCard({
|
||||
return rateDefinitions.find((def) => def.rateCode === rate?.rateCode)
|
||||
?.generalTerms
|
||||
}
|
||||
|
||||
const roomSize = roomCategories.find(
|
||||
const selectedRoom = roomCategories.find(
|
||||
(room) => room.name === roomConfiguration.roomType
|
||||
)?.roomSize
|
||||
)
|
||||
|
||||
const occupancy = roomCategories.find(
|
||||
(room) => room.name === roomConfiguration.roomType
|
||||
)?.occupancy.total
|
||||
|
||||
const roomDescription = roomCategories.find(
|
||||
(room) => room.name === roomConfiguration.roomType
|
||||
)?.descriptions.short
|
||||
|
||||
const images = roomCategories.find(
|
||||
(room) => room.name === roomConfiguration.roomType
|
||||
)?.images
|
||||
const roomSize = selectedRoom?.roomSize
|
||||
const occupancy = selectedRoom?.occupancy.total
|
||||
const roomDescription = selectedRoom?.descriptions.short
|
||||
const images = selectedRoom?.images
|
||||
const mainImage = images?.[0]
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user