feat(LOY-23): redeem benefit modal
This commit is contained in:
@@ -2,7 +2,6 @@ import { Reward } from "@/server/routers/contentstack/reward/output"
|
||||
|
||||
export interface Surprise extends Reward {
|
||||
coupons: { couponCode?: string; expiresAt?: string }[]
|
||||
id?: string
|
||||
}
|
||||
|
||||
export interface SurprisesProps {
|
||||
|
||||
4
types/components/countdown/index.ts
Normal file
4
types/components/countdown/index.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface CountdownProps {
|
||||
minutes?: number
|
||||
seconds?: number
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
import { z } from "zod"
|
||||
|
||||
import { blocksSchema } from "@/server/routers/contentstack/accountPage/output"
|
||||
import { Reward } from "@/server/routers/contentstack/reward/output"
|
||||
|
||||
import { DynamicContent } from "@/types/trpc/routers/contentstack/blocks"
|
||||
|
||||
@@ -18,3 +19,15 @@ type Content = z.output<typeof blocksSchema>
|
||||
export type ContentProps = {
|
||||
content: Content[]
|
||||
}
|
||||
|
||||
export interface CurrentRewardsClientProps {
|
||||
initialCurrentRewards: { rewards: Reward[]; nextCursor: number | undefined }
|
||||
}
|
||||
|
||||
export interface Redeem {
|
||||
reward: Reward
|
||||
}
|
||||
|
||||
export type RedeemModalState = "unmounted" | "hidden" | "visible"
|
||||
|
||||
export type RedeemStep = "initial" | "confirmation" | "redeemed"
|
||||
|
||||
Reference in New Issue
Block a user