feat(SW-2278): Added hotel listing to campaign page
Approved-by: Matilda Landström
This commit is contained in:
@@ -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" />
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user