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

@@ -7,11 +7,11 @@ import { RateDefinition } from "@/server/routers/hotels/output"
import ToggleSidePeek from "@/components/HotelReservation/EnterDetails/SelectedRoom/ToggleSidePeek"
import FlexibilityOption from "@/components/HotelReservation/SelectRate/RoomSelection/FlexibilityOption"
import ImageGallery from "@/components/ImageGallery"
import Caption from "@/components/TempDesignSystem/Text/Caption"
import Footnote from "@/components/TempDesignSystem/Text/Footnote"
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
import ImageGallery from "../../ImageGallery"
import { getIconForFeatureCode } from "../../utils"
import styles from "./roomCard.module.css"
@@ -164,7 +164,11 @@ export default function RoomCard({
</div>
{/*NOTE: images from the test API are hosted on test3.scandichotels.com,
which can't be accessed unless on Scandic's Wifi or using Citrix. */}
<ImageGallery images={images} title={roomConfiguration.roomType} />
<ImageGallery
images={images}
title={roomConfiguration.roomType}
fill
/>
</div>
)}
</div>