diff --git a/src/components/chat/GiftRevealModal.tsx b/src/components/chat/GiftRevealModal.tsx index a3c6815..16ba423 100644 --- a/src/components/chat/GiftRevealModal.tsx +++ b/src/components/chat/GiftRevealModal.tsx @@ -7,6 +7,11 @@ import RoundedButton from "@/components/elements/RoundedButton"; import { useTranslation } from "react-i18next"; const PARTICLES = ["🎉", "🎊", "✨", "🎈", "🎁"]; +// طبقِ خواستهی کاربر: بعدِ باز شدنِ کادو، مبلغ بهصورتِ انیمیشنی «پرواز» میکنه و توی +// آیکونِ کیفپول فرود میاد — همون زمانبندی نسخهی اندروید (GiftRevealModal.tsx: Reanimated) +const COIN_FLY_DELAY_S = 0.75; +const COIN_FLY_DURATION_S = 0.55; +const WALLET_ARRIVAL_S = COIN_FLY_DELAY_S + COIN_FLY_DURATION_S; type Particle = { id: number; @@ -89,14 +94,46 @@ export default function GiftRevealModal({ 🎁 - + + {amount.toLocaleString()} {t("settings.toman")} + + + 🪙 + + + + - {amount.toLocaleString()} {t("settings.toman")} - + + 👛 + + + {t("chats.gift.walletLabel")} + + {message ? ( ) : null} - {t("chats.gift.creditedHint")} + + {t("chats.gift.creditedHint")} +
{t("chats.gift.creditedHint")}