Files
web/packages/design-system/lib/components/Icons/IllustrationByIconName.ts
Chuma Mcphoy (We Ahead) c6da0fb8cb Merged in feat/LOY-316-Level-Progress-Card (pull request #2739)
Feat/LOY-316 Level Progress Card

* feat(LOY-315): Add MembershipOverviewCard

* refactor(LOY-315): abstract sasbooststatus

* feat(LOY-316): build out LevelProgressCard skeleton & variant styling

* feat(LOY-316): Add HighesMembershipCard

* feat(LOY-316): ProgressBarCard base

* refactor(LOY-315): highest level card misc fixes

* feat(LOY-316): Add progress component to design system

* fix(LOY-316): type check

* refactor(LOY-316): calculate currentEarnings correctly

* fix(LOY-316): sas icon showing when not boosted

* fix(LOY-316): css module

* refactor(LOY-316): Restructure components

* feat(LOY-316): Add marker pin 📍

* fix(LOY-316): strict equality checks

* fix(LOY-316): code review fixes

* chore(LOY-316): conditionally hide old section under flag

* feat(LOY-316): Add level progress card to my points page

* chore(LOY-316): marker label container height


Approved-by: Matilda Landström
2025-09-10 06:53:22 +00:00

52 lines
1.6 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 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.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
}
}