From 1d648817b1c2c6624e2242946c425b043c4b714a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Sat, 3 May 2025 21:02:27 +0200 Subject: [PATCH] fix: add (available in some rooms) --- .../SidePeeks/RoomSidePeek/index.tsx | 33 +++++++++++-------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/apps/scandic-web/components/SidePeeks/RoomSidePeek/index.tsx b/apps/scandic-web/components/SidePeeks/RoomSidePeek/index.tsx index a7836746c..52445145b 100644 --- a/apps/scandic-web/components/SidePeeks/RoomSidePeek/index.tsx +++ b/apps/scandic-web/components/SidePeeks/RoomSidePeek/index.tsx @@ -92,22 +92,27 @@ export default function RoomSidePeek({ {room.roomFacilities .sort((a, b) => a.sortOrder - b.sortOrder) .map((facility) => { - const Icon = ( - - ) return (
  • - {Icon && Icon} - - {facility.name} + + + + {facility.availableInAllRooms + ? facility.name + : intl.formatMessage( + { + defaultMessage: + "{facility} (available in some rooms)", + }, + { + facility: facility.name, + } + )} +
  • )