Merged in feat/LOY-55-Filter-Modal (pull request #1509)
feat(LOY-55): Add FilterRewardsModal * feat(LOY-55): Add rewards filtering functionality - Implement dynamic rewards filtering by category and membership level - Create FilterRewardsModal component for filtering rewards - Add useFilteredRewards hook to handle filtering logic - Update rewards schema and constants to support new filtering features - Remove hardcoded page size and replace with constant * fix(LOY-55): reuse existing tier to friend map * refactor(LOY-55): fix checkbox onChange type safety * refactor(LOY-55): Improve rewards filtering type safety and validation * refactor(LOY-55): Update filter modal border color using design token Approved-by: Christian Andolf
This commit is contained in:
@@ -18,6 +18,9 @@ export enum MembershipLevelEnum {
|
||||
L7 = "L7",
|
||||
}
|
||||
|
||||
/**
|
||||
* @note Membership levels should always be in English.
|
||||
*/
|
||||
export const TIER_TO_FRIEND_MAP: Record<MembershipLevelEnum, string> = {
|
||||
[MembershipLevelEnum.L1]: "New Friend",
|
||||
[MembershipLevelEnum.L2]: "Good Friend",
|
||||
|
||||
@@ -45,3 +45,13 @@ export const COUPON_REWARD_TYPES = [
|
||||
] as const
|
||||
|
||||
export const REWARD_TYPES = [...COUPON_REWARD_TYPES, "Tier"] as const
|
||||
|
||||
export const REWARDS_PER_PAGE = 6
|
||||
|
||||
export const REWARD_CATEGORIES = [
|
||||
"Restaurants",
|
||||
"Bar",
|
||||
"Voucher",
|
||||
"Services and rooms",
|
||||
"Spa and gym",
|
||||
] as const
|
||||
|
||||
Reference in New Issue
Block a user