From 71ef99147890ce58d453ca87cd0c05375f5e6ce3 Mon Sep 17 00:00:00 2001 From: Pontus Dreij Date: Wed, 13 Nov 2024 20:40:22 +0100 Subject: [PATCH] feat(SW-826): added showCTA --- components/HotelReservation/HotelCard/index.tsx | 1 + components/SidePeeks/HotelSidePeek/index.tsx | 2 +- types/components/hotelReservation/hotelSidePeek.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/HotelReservation/HotelCard/index.tsx b/components/HotelReservation/HotelCard/index.tsx index 248d08779..86a483536 100644 --- a/components/HotelReservation/HotelCard/index.tsx +++ b/components/HotelReservation/HotelCard/index.tsx @@ -108,6 +108,7 @@ export default function HotelCard({ label={intl.formatMessage({ id: "See hotel details" })} hotelId={hotelData.operaId} hotel={hotelData} + showCTA={true} />
diff --git a/components/SidePeeks/HotelSidePeek/index.tsx b/components/SidePeeks/HotelSidePeek/index.tsx index 2cc0eb53a..06ac3e5f2 100644 --- a/components/SidePeeks/HotelSidePeek/index.tsx +++ b/components/SidePeeks/HotelSidePeek/index.tsx @@ -27,7 +27,7 @@ export default function HotelSidePeek({ hotel, activeSidePeek, close, - showCTA = true, + showCTA, }: HotelSidePeekProps) { const intl = useIntl() const amenitiesList = getAmenitiesList(hotel) diff --git a/types/components/hotelReservation/hotelSidePeek.ts b/types/components/hotelReservation/hotelSidePeek.ts index b531498ae..d188215b5 100644 --- a/types/components/hotelReservation/hotelSidePeek.ts +++ b/types/components/hotelReservation/hotelSidePeek.ts @@ -5,5 +5,5 @@ export type HotelSidePeekProps = { hotel: Hotel activeSidePeek: SidePeekEnum close: () => void - showCTA?: boolean + showCTA: boolean }