feat(SW-826): Hide Button if not isSelectHotelPage and removed accordion for Accessibility
This commit is contained in:
@@ -31,6 +31,8 @@ export default function HotelSidePeek({
|
|||||||
const intl = useIntl()
|
const intl = useIntl()
|
||||||
const amenitiesList = getAmenitiesList(hotel)
|
const amenitiesList = getAmenitiesList(hotel)
|
||||||
|
|
||||||
|
const isSelectHotelPage = window.location.href.includes("select-hotel")
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SidePeek
|
<SidePeek
|
||||||
title={hotel.name}
|
title={hotel.name}
|
||||||
@@ -51,9 +53,9 @@ export default function HotelSidePeek({
|
|||||||
))}
|
))}
|
||||||
</AccordionItem>
|
</AccordionItem>
|
||||||
) : null}
|
) : null}
|
||||||
<AccordionItem title={intl.formatMessage({ id: "Accessibility" })}>
|
<div className={styles.amenity}>
|
||||||
TODO: What content should be in the accessibility section?
|
{intl.formatMessage({ id: "Accessibility" })}
|
||||||
</AccordionItem>
|
</div>
|
||||||
{amenitiesList.map((amenity) => {
|
{amenitiesList.map((amenity) => {
|
||||||
return (
|
return (
|
||||||
<div key={amenity.id} className={styles.amenity}>
|
<div key={amenity.id} className={styles.amenity}>
|
||||||
@@ -62,8 +64,10 @@ export default function HotelSidePeek({
|
|||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</Accordion>
|
</Accordion>
|
||||||
{/* TODO: handle linking to Hotel Page */}
|
{isSelectHotelPage && (
|
||||||
<Button theme={"base"}>To the hotel</Button>
|
/* TODO: handle linking to Hotel Page */
|
||||||
|
<Button theme={"base"}>To the hotel</Button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</SidePeek>
|
</SidePeek>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user