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)
|
return rateDefinitions.find((def) => def.rateCode === rate?.rateCode)
|
||||||
?.generalTerms
|
?.generalTerms
|
||||||
}
|
}
|
||||||
|
const selectedRoom = roomCategories.find(
|
||||||
const roomSize = roomCategories.find(
|
|
||||||
(room) => room.name === roomConfiguration.roomType
|
(room) => room.name === roomConfiguration.roomType
|
||||||
)?.roomSize
|
)
|
||||||
|
|
||||||
const occupancy = roomCategories.find(
|
const roomSize = selectedRoom?.roomSize
|
||||||
(room) => room.name === roomConfiguration.roomType
|
const occupancy = selectedRoom?.occupancy.total
|
||||||
)?.occupancy.total
|
const roomDescription = selectedRoom?.descriptions.short
|
||||||
|
const images = selectedRoom?.images
|
||||||
const roomDescription = roomCategories.find(
|
|
||||||
(room) => room.name === roomConfiguration.roomType
|
|
||||||
)?.descriptions.short
|
|
||||||
|
|
||||||
const images = roomCategories.find(
|
|
||||||
(room) => room.name === roomConfiguration.roomType
|
|
||||||
)?.images
|
|
||||||
const mainImage = images?.[0]
|
const mainImage = images?.[0]
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user