feat(SW-340): Hover actions

This commit is contained in:
Pontus Dreij
2024-11-08 12:23:39 +01:00
parent 5f46844b9b
commit 39edd1d422
7 changed files with 34 additions and 11 deletions

View File

@@ -16,7 +16,8 @@ import {
export default function HotelCardListing({
hotelData,
type = HotelCardListingTypeEnum.PageListing,
state = "default",
activeCard,
onHotelCardHover,
}: HotelCardListingProps) {
const searchParams = useSearchParams()
@@ -41,7 +42,8 @@ export default function HotelCardListing({
key={hotel.hotelData.name}
hotel={hotel}
type={type}
state={state}
state={hotel.hotelData.name === activeCard ? "active" : "default"}
onHotelCardHover={onHotelCardHover}
/>
))
) : (