fix: hide new cs rewards model behind feature flag

This commit is contained in:
Christian Andolf
2024-12-10 16:21:08 +01:00
parent f075521421
commit 0d607d7cc7
11 changed files with 106 additions and 23 deletions

View File

@@ -1,7 +1,10 @@
import { z } from "zod"
import { blocksSchema } from "@/server/routers/contentstack/accountPage/output"
import { Reward } from "@/server/routers/contentstack/reward/output"
import {
Reward,
RewardWithRedeem,
} from "@/server/routers/contentstack/reward/output"
import { DynamicContent } from "@/types/trpc/routers/contentstack/blocks"
@@ -21,13 +24,13 @@ export type ContentProps = {
}
export interface CurrentRewardsClientProps {
rewards: Reward[]
rewards: (Reward | RewardWithRedeem)[]
pageSize: number
showRedeem: boolean
}
export interface Redeem {
reward: Reward
export interface RedeemProps {
reward: RewardWithRedeem
}
export type RedeemModalState = "unmounted" | "hidden" | "visible"