fix(LOY-137): now fetches surprises client side in intervals

This commit is contained in:
Christian Andolf
2025-02-17 15:39:47 +01:00
parent a55737617c
commit 0ba71f205d
4 changed files with 130 additions and 110 deletions

View File

@@ -1,8 +1,4 @@
import type { Reward } from "@/server/routers/contentstack/reward/output"
export interface Surprise extends Omit<Reward, "operaRewardId" | "couponCode"> {
coupons: { couponCode?: string | undefined; expiresAt?: string }[]
}
import type { Surprise } from "@/server/routers/contentstack/reward/output"
export interface SurprisesProps {
surprises: Surprise[]