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:
50
apps/scandic-web/components/Icons/IllustrationByIconName.ts
Normal file
50
apps/scandic-web/components/Icons/IllustrationByIconName.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
import {
|
||||
BedIcon,
|
||||
CoinIcon,
|
||||
CroissantCoffeeEggIcon,
|
||||
CutleryOneIcon,
|
||||
CutleryTwoIcon,
|
||||
GiftOpenIcon,
|
||||
HandKeyIcon,
|
||||
HotelNightIcon,
|
||||
KidsIcon,
|
||||
KidsMocktailIcon,
|
||||
MagicWandIcon,
|
||||
MoneyHandIcon,
|
||||
VoucherIcon,
|
||||
} from "@scandic-hotels/design-system/Icons"
|
||||
|
||||
import { IconName } from "./iconName"
|
||||
|
||||
export function IllustrationByIconName(iconName: IconName | null) {
|
||||
switch (iconName) {
|
||||
case IconName.Kids:
|
||||
return KidsIcon
|
||||
case IconName.KidsMocktail:
|
||||
return KidsMocktailIcon
|
||||
case IconName.MagicWand:
|
||||
return MagicWandIcon
|
||||
case IconName.MoneyHand:
|
||||
return MoneyHandIcon
|
||||
case IconName.HandKey:
|
||||
return HandKeyIcon
|
||||
case IconName.HotelNight:
|
||||
return HotelNightIcon
|
||||
case IconName.GiftOpen:
|
||||
return GiftOpenIcon
|
||||
case IconName.CutleryOne:
|
||||
return CutleryOneIcon
|
||||
case IconName.CutleryTwo:
|
||||
return CutleryTwoIcon
|
||||
case IconName.CroissantCoffeeEgg:
|
||||
return CroissantCoffeeEggIcon
|
||||
case IconName.Coin:
|
||||
return CoinIcon
|
||||
case IconName.Bed:
|
||||
return BedIcon
|
||||
case IconName.Voucher:
|
||||
return VoucherIcon
|
||||
default:
|
||||
return null
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user