From a66427fcccbeed5bb7b796765400b28888a64f75 Mon Sep 17 00:00:00 2001 From: Pontus Dreij Date: Wed, 13 Nov 2024 15:49:40 +0100 Subject: [PATCH] feat(SW-826): Hide Button if not isSelectHotelPage and removed accordion for Accessibility --- components/SidePeeks/HotelSidePeek/index.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/components/SidePeeks/HotelSidePeek/index.tsx b/components/SidePeeks/HotelSidePeek/index.tsx index 481db8564..8664ace88 100644 --- a/components/SidePeeks/HotelSidePeek/index.tsx +++ b/components/SidePeeks/HotelSidePeek/index.tsx @@ -31,6 +31,8 @@ export default function HotelSidePeek({ const intl = useIntl() const amenitiesList = getAmenitiesList(hotel) + const isSelectHotelPage = window.location.href.includes("select-hotel") + return ( ) : null} - - TODO: What content should be in the accessibility section? - +
+ {intl.formatMessage({ id: "Accessibility" })} +
{amenitiesList.map((amenity) => { return (
@@ -62,8 +64,10 @@ export default function HotelSidePeek({ ) })} - {/* TODO: handle linking to Hotel Page */} - + {isSelectHotelPage && ( + /* TODO: handle linking to Hotel Page */ + + )}
)