refactor(LOY-62): revert to switch case for ScriptedRewardText label text

This commit is contained in:
Chuma McPhoy
2025-01-13 16:38:56 +01:00
parent da31539610
commit 655103a0b5
4 changed files with 27 additions and 20 deletions

View File

@@ -1,8 +1,8 @@
import type { IconProps } from "@/types/components/icon"
import type {
COUPON_REWARD_TYPES,
RESTAURANT_REWARD_IDS,
REWARD_IDS,
REWARD_TYPES,
} from "@/constants/rewards"
export interface RewardIconProps extends IconProps {
@@ -14,4 +14,4 @@ export type RewardId = (typeof REWARD_IDS)[keyof typeof REWARD_IDS]
export type RestaurantRewardId = (typeof RESTAURANT_REWARD_IDS)[number]
export type CouponRewardType = (typeof COUPON_REWARD_TYPES)[number]
export type RewardType = (typeof REWARD_TYPES)[number]