diff --git a/components/Blocks/DynamicContent/Rewards/Redeem/index.tsx b/components/Blocks/DynamicContent/Rewards/Redeem/index.tsx index e7d44c753..6d2eb81c5 100644 --- a/components/Blocks/DynamicContent/Rewards/Redeem/index.tsx +++ b/components/Blocks/DynamicContent/Rewards/Redeem/index.tsx @@ -10,8 +10,11 @@ import { } from "react-aria-components" import { useIntl } from "react-intl" +import { trpc } from "@/lib/trpc/client" + import { CloseLargeIcon } from "@/components/Icons" import Button from "@/components/TempDesignSystem/Button" +import useLang from "@/hooks/useLang" import Campaign from "./Flows/Campaign" import Tier from "./Flows/Tier" @@ -32,6 +35,8 @@ const MotionModal = motion(Modal) export default function Redeem({ reward, membershipNumber }: RedeemProps) { const [animation, setAnimation] = useState("unmounted") const intl = useIntl() + const lang = useLang() + const utils = trpc.useUtils() const [redeemStep, setRedeemStep] = useState("initial") function modalStateHandler(newAnimationState: RedeemModalState) { @@ -74,7 +79,10 @@ export default function Redeem({ reward, membershipNumber }: RedeemProps) { <>