feat(SW-826): Added showCTA prop

This commit is contained in:
Pontus Dreij
2024-11-13 20:39:13 +01:00
parent 69ca6211ec
commit 5c85e59bba
7 changed files with 15 additions and 7 deletions

View File

@@ -27,12 +27,11 @@ export default function HotelSidePeek({
hotel,
activeSidePeek,
close,
showCTA = true,
}: HotelSidePeekProps) {
const intl = useIntl()
const amenitiesList = getAmenitiesList(hotel)
const isSelectHotelPage = window.location.href.includes("select-hotel")
return (
<SidePeek
title={hotel.name}
@@ -64,7 +63,7 @@ export default function HotelSidePeek({
)
})}
</Accordion>
{isSelectHotelPage && (
{showCTA && (
/* TODO: handle linking to Hotel Page */
<Button theme={"base"}>To the hotel</Button>
)}