Merged in feat/SW-1711-switch-icons (pull request #1558)
Switches out all the old icons to new ones, and moves them to the design system. The new icons are of three different types: Materialise Symbol, Nucleo, and Customized. Also adds further mapping between facilities/amenities and icons. Approved-by: Michael Zetterberg Approved-by: Erik Tiekstra
This commit is contained in:
49
packages/design-system/lib/components/Icons/Logos/index.tsx
Normal file
49
packages/design-system/lib/components/Icons/Logos/index.tsx
Normal file
@@ -0,0 +1,49 @@
|
||||
import {
|
||||
DowntownCamperIcon,
|
||||
GrandHotelOsloLogoIcon,
|
||||
HaymarketIcon,
|
||||
HotelNorgeIcon,
|
||||
MarskiLogoIcon,
|
||||
ScandicGoLogoIcon,
|
||||
ScandicLogoIcon,
|
||||
} from '..'
|
||||
|
||||
type HotelLogoProps = {
|
||||
hotelId: string
|
||||
hotelType: string
|
||||
}
|
||||
|
||||
enum HotelTypeEnum {
|
||||
Signature = 'signature',
|
||||
ScandicGo = 'scandicgo',
|
||||
Regular = 'regular',
|
||||
}
|
||||
|
||||
enum SignatureHotelEnum {
|
||||
DowntownCamper = '879',
|
||||
GrandHotelOslo = '340',
|
||||
Haymarket = '890',
|
||||
HotelNorge = '785',
|
||||
Marski = '605',
|
||||
}
|
||||
|
||||
export default function HotelLogo({ hotelId, hotelType }: HotelLogoProps) {
|
||||
if (hotelType === HotelTypeEnum.ScandicGo) {
|
||||
return <ScandicGoLogoIcon />
|
||||
}
|
||||
|
||||
switch (hotelId) {
|
||||
case SignatureHotelEnum.Haymarket:
|
||||
return <HaymarketIcon />
|
||||
case SignatureHotelEnum.HotelNorge:
|
||||
return <HotelNorgeIcon />
|
||||
case SignatureHotelEnum.DowntownCamper:
|
||||
return <DowntownCamperIcon />
|
||||
case SignatureHotelEnum.GrandHotelOslo:
|
||||
return <GrandHotelOsloLogoIcon />
|
||||
case SignatureHotelEnum.Marski:
|
||||
return <MarskiLogoIcon />
|
||||
default:
|
||||
return <ScandicLogoIcon color="Icon/Interactive/Accent" />
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user