feat(SW-2278): Added hotel listing to campaign page

Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-06-19 09:36:28 +00:00
parent 105c4d9cf3
commit af92f7183c
31 changed files with 703 additions and 57 deletions

View File

@@ -10,6 +10,7 @@ import TheDockIcon from './TheDock'
type HotelLogoProps = {
hotelId: string
hotelType: string
height?: number
}
enum HotelTypeEnum {
@@ -27,25 +28,29 @@ enum SignatureHotelEnum {
TheDock = '796',
}
export default function HotelLogoIcon({ hotelId, hotelType }: HotelLogoProps) {
export default function HotelLogoIcon({
hotelId,
hotelType,
height,
}: HotelLogoProps) {
if (hotelType === HotelTypeEnum.ScandicGo) {
return <ScandicGoLogoIcon />
return <ScandicGoLogoIcon height={height} />
}
switch (hotelId) {
case SignatureHotelEnum.Haymarket:
return <HaymarketIcon />
return <HaymarketIcon height={height} />
case SignatureHotelEnum.HotelNorge:
return <HotelNorgeIcon />
return <HotelNorgeIcon height={height} />
case SignatureHotelEnum.DowntownCamper:
return <DowntownCamperIcon />
return <DowntownCamperIcon height={height} />
case SignatureHotelEnum.GrandHotelOslo:
return <GrandHotelOsloLogoIcon />
return <GrandHotelOsloLogoIcon height={height} />
case SignatureHotelEnum.Marski:
return <MarskiLogoIcon />
return <MarskiLogoIcon height={height} />
case SignatureHotelEnum.TheDock:
return <TheDockIcon />
return <TheDockIcon height={height} />
default:
return <ScandicLogoIcon color="Icon/Interactive/Accent" />
return <ScandicLogoIcon height={height} color="Icon/Interactive/Accent" />
}
}