feat: dual referral links UI (bot + cabinet) with independent copy states

- add bot referral link section with Telegram icon (conditionally rendered)
- add cabinet referral link section with chain-link icon
- independent copy button state per link type
- add bot_referral_link to ReferralInfo type
- add i18n keys: botLink, cabinetLink in ru/en/fa/zh
This commit is contained in:
Fringg
2026-03-15 01:14:25 +03:00
parent 62188b8d2e
commit e023373f56
6 changed files with 100 additions and 37 deletions

View File

@@ -726,8 +726,10 @@
},
"referral": {
"title": "Referral Program",
"yourLink": "Your Referral Link",
"copyLink": "Copy Link",
"yourLink": "Your Referral Links",
"botLink": "Bot link",
"cabinetLink": "Cabinet link",
"copyLink": "Copy",
"copied": "Copied!",
"shareButton": "Share",
"shareMessage": "Join me on {{botName}} and earn up to {{percent}}% cashback!",

View File

@@ -577,8 +577,10 @@
},
"referral": {
"title": "برنامه معرفی",
"yourLink": "لینک معرفی شما",
"copyLink": "کپی لینک",
"yourLink": "لینک‌های معرفی شما",
"botLink": "لینک ربات",
"cabinetLink": "لینک کابینت",
"copyLink": "کپی",
"copied": "کپی شد!",
"shareButton": "اشتراک‌گذاری",
"shareMessage": "از طریق لینک من به {{botName}} بپیوند و تا {{percent}}٪ پاداش بگیر!",

View File

@@ -754,8 +754,10 @@
},
"referral": {
"title": "Реферальная программа",
"yourLink": "Ваша реферальная ссылка",
"copyLink": "Копировать ссылку",
"yourLink": "Ваши реферальные ссылки",
"botLink": "Ссылка на бота",
"cabinetLink": "Ссылка на кабинет",
"copyLink": "Копировать",
"copied": "Скопировано!",
"shareButton": "Поделиться",
"shareMessage": "Заходи в {{botName}} по моей ссылке и получай до {{percent}}% кешбэка!",

View File

@@ -578,7 +578,9 @@
"referral": {
"title": "推荐计划",
"yourLink": "您的推荐链接",
"copyLink": "复制链接",
"botLink": "机器人链接",
"cabinetLink": "面板链接",
"copyLink": "复制",
"copied": "已复制!",
"shareButton": "分享",
"shareMessage": "通过我的链接加入 {{botName}},获取高达 {{percent}}% 返现!",