diff --git a/components/HotelReservation/HotelCard/index.tsx b/components/HotelReservation/HotelCard/index.tsx index 3c5dc72ff..0ee8fb37f 100644 --- a/components/HotelReservation/HotelCard/index.tsx +++ b/components/HotelReservation/HotelCard/index.tsx @@ -24,6 +24,7 @@ export default function HotelCard({ hotel, type = HotelCardListingTypeEnum.PageListing, state = "default", + onHotelCardHover, }: HotelCardProps) { const intl = useIntl() @@ -37,8 +38,25 @@ export default function HotelCard({ state, }) + const handleMouseEnter = () => { + console.log("handleMouseEnter", hotelData.name) + if (onHotelCardHover) { + console.log("onHotelCardHover", hotelData.name) + onHotelCardHover(hotelData.name) + } + } + const handleMouseLeave = () => { + if (onHotelCardHover) { + onHotelCardHover(null) + } + } + return ( -
+
{hotelData.gallery && ( )) ) : ( diff --git a/components/HotelReservation/SelectHotel/SelectHotelMap/HotelListing/index.tsx b/components/HotelReservation/SelectHotel/SelectHotelMap/HotelListing/index.tsx index 15a31c35c..65bd476e6 100644 --- a/components/HotelReservation/SelectHotel/SelectHotelMap/HotelListing/index.tsx +++ b/components/HotelReservation/SelectHotel/SelectHotelMap/HotelListing/index.tsx @@ -9,14 +9,16 @@ import type { HotelListingProps } from "@/types/components/hotelReservation/sele export default function HotelListing({ hotels, - cardState = "default", + activeHotelPin, + onHotelCardHover, }: HotelListingProps) { return (
) diff --git a/components/HotelReservation/SelectHotel/SelectHotelMap/index.tsx b/components/HotelReservation/SelectHotel/SelectHotelMap/index.tsx index a238410be..3367d25b7 100644 --- a/components/HotelReservation/SelectHotel/SelectHotelMap/index.tsx +++ b/components/HotelReservation/SelectHotel/SelectHotelMap/index.tsx @@ -94,7 +94,8 @@ export default function SelectHotelMap({ {showBackToTop && (