feat(SW-842): Some refactoring regarding room card

This commit is contained in:
Erik Tiekstra
2024-11-12 11:29:51 +01:00
parent 962760ae1b
commit 692320bd61
18 changed files with 87 additions and 155 deletions

View File

@@ -8,6 +8,7 @@ import { selectHotelMap } from "@/constants/routes/hotelReservation"
import { mapFacilityToIcon } from "@/components/ContentType/HotelPage/data"
import { PriceTagIcon, ScandicLogoIcon } from "@/components/Icons"
import TripAdvisorIcon from "@/components/Icons/TripAdvisor"
import ImageGallery from "@/components/ImageGallery"
import Button from "@/components/TempDesignSystem/Button"
import Chip from "@/components/TempDesignSystem/Chip"
import Link from "@/components/TempDesignSystem/Link"
@@ -16,7 +17,6 @@ import Footnote from "@/components/TempDesignSystem/Text/Footnote"
import Title from "@/components/TempDesignSystem/Text/Title"
import ReadMore from "../ReadMore"
import ImageGallery from "../SelectRate/ImageGallery"
import { hotelCardVariants } from "./variants"
import styles from "./hotelCard.module.css"
@@ -62,7 +62,13 @@ export default function HotelCard({
onMouseLeave={handleMouseLeave}
>
<section className={styles.imageContainer}>
<ImageGallery title={hotelData.name} images={hotelData.galleryImages} />
{hotelData.gallery && (
<ImageGallery
title={hotelData.name}
images={hotelData.galleryImages}
fill
/>
)}
<div className={styles.tripAdvisor}>
<Chip intent="primary" className={styles.tripAdvisor}>
<TripAdvisorIcon color="white" />