refactor(LOY-62): implement code review feedback

This commit is contained in:
Chuma McPhoy
2025-01-13 13:45:13 +01:00
parent e0d8315565
commit da31539610
10 changed files with 61 additions and 143 deletions

View File

@@ -1,5 +1,9 @@
import type { IconProps } from "@/types/components/icon"
import type { RESTAURANT_REWARD_IDS, REWARD_IDS } from "@/constants/rewards"
import type {
COUPON_REWARD_TYPES,
RESTAURANT_REWARD_IDS,
REWARD_IDS,
} from "@/constants/rewards"
export interface RewardIconProps extends IconProps {
rewardId: string
@@ -9,3 +13,5 @@ export interface RewardIconProps extends IconProps {
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]