fix: gift UI improvements — declension, GB display, share modal, deep links

- Fix Russian device count declension (_one/_few/_many)
- Show traffic GB and tariff description in buy tab
- Replace copy/share buttons with share modal (bot + cabinet links)
- GiftResult: code-only success state with formatted share message
- Support ?tab=activate&code=TOKEN for auto-activation via cabinet link
- Add is_code_only + purchase_token to API types
This commit is contained in:
Fringg
2026-03-10 06:03:28 +03:00
parent af3e535c69
commit 1bafcca1ef
5 changed files with 380 additions and 59 deletions

View File

@@ -70,6 +70,8 @@ export type GiftPurchaseStatusValue =
export interface GiftPurchaseStatus {
status: GiftPurchaseStatusValue;
is_gift: boolean;
is_code_only: boolean;
purchase_token: string | null;
recipient_contact_value: string | null;
gift_message: string | null;
tariff_name: string | null;