feat(LOY-336): Add PointsToSpendCard * feat(LOY-366): Add PointsToSpendCard * feat(LOY-336): Add Expiring Points Table Sidepeek * fix(LOY-336): Hide old section * fix(LOY-336): description mobile styling * chore(LOY-336): css cleanup Approved-by: Matilda Landström
55 lines
1.8 KiB
TypeScript
55 lines
1.8 KiB
TypeScript
import BedIcon from './Illustrations/Bed'
|
|
import CoinIcon from './Illustrations/Coin'
|
|
import CroissantCoffeeEggIcon from './Illustrations/CroissantCoffeeEgg'
|
|
import CutleryOneIcon from './Illustrations/CutleryOne'
|
|
import CutleryTwoIcon from './Illustrations/CutleryTwo'
|
|
import GiftOpenIcon from './Illustrations/GiftOpen'
|
|
import HandKeyIcon from './Illustrations/HandKey'
|
|
import HotelNightIcon from './Illustrations/HotelNight'
|
|
import KidsIcon from './Illustrations/Kids'
|
|
import KidsMocktailIcon from './Illustrations/KidsMocktail'
|
|
import MagicWandIcon from './Illustrations/MagicWand'
|
|
import MoneyHandIcon from './Illustrations/MoneyHand'
|
|
import MoneyHandEllipsisIcon from './Illustrations/MoneyHandEllipsis'
|
|
import TrophyIcon from './Illustrations/Trophy'
|
|
import VoucherIcon from './Illustrations/Voucher'
|
|
|
|
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.MoneyHandEllipsis:
|
|
return MoneyHandEllipsisIcon
|
|
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.Trophy:
|
|
return TrophyIcon
|
|
case IconName.Voucher:
|
|
return VoucherIcon
|
|
default:
|
|
return null
|
|
}
|
|
}
|