Merged in fix/SW-1145-occupancy-room-api-change (pull request #1148)

Fix/SW-1145 occupancy room api change

* fix(SW-1145): change occupancy to min and max

* fix(SW-1145): small edit

* fix(SW-1145): refactor to transform total room occupancy

* fix(SW-1145): remove space

* fix(SW-1145): small fix

* fix(SW-1145): change to max for readability


Approved-by: Erik Tiekstra
Approved-by: Linus Flood
This commit is contained in:
Bianca Widstam
2025-01-08 14:22:01 +00:00
committed by Linus Flood
parent 1018b3ebcd
commit a620be9331
11 changed files with 42 additions and 31 deletions

View File

@@ -21,7 +21,6 @@ export default function RoomSidePeek({
const intl = useIntl()
const roomSize = room.roomSize
const occupancy = room.occupancy.total
const roomDescription = room.descriptions.medium
const images = room.images
@@ -40,7 +39,7 @@ export default function RoomSidePeek({
m².{" "}
{intl.formatMessage(
{ id: "booking.accommodatesUpTo" },
{ nrOfGuests: occupancy }
{ max: room.totalOccupancy.max, range: room.totalOccupancy.range }
)}
</Body>
<div className={styles.imageContainer}>