fix: gift code display + share modal backdrop

- Don't uppercase gift codes (tokens are case-sensitive base64)
- Lighten share modal backdrop (bg-dark-900/40 instead of bg-black/60)
This commit is contained in:
Fringg
2026-03-10 06:20:29 +03:00
parent d852bfe969
commit a627eb0b30
2 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ import { AnimatedCrossmark } from '@/components/ui/AnimatedCrossmark';
import { cn } from '@/lib/utils';
function formatGiftCode(token: string): string {
return `GIFT-${token.slice(0, 12).toUpperCase()}`;
return `GIFT-${token.slice(0, 12)}`;
}
const MAX_POLL_MS = 10 * 60 * 1000; // 10 minutes

View File

@@ -1015,7 +1015,7 @@ function ShareModal({ gift, onClose }: { gift: SentGift; onClose: () => void })
onClick={onClose}
>
{/* Backdrop */}
<div className="absolute inset-0 bg-black/60 backdrop-blur-sm" />
<div className="absolute inset-0 bg-dark-900/40 backdrop-blur-sm" />
{/* Modal content */}
<motion.div
@@ -1131,7 +1131,7 @@ function SentGiftCard({ gift }: { gift: SentGift }) {
const { t } = useTranslation();
const [showShareModal, setShowShareModal] = useState(false);
const giftCode = `GIFT-${gift.token.slice(0, 12).toUpperCase()}`;
const giftCode = `GIFT-${gift.token.slice(0, 12)}`;
const isActivated = isGiftActivated(gift);
const isAvailable = !isActivated && isGiftAvailable(gift.status);