feat: add "Add Referral" button to referrals tab

- New search UI in referrals list section to find and bind users
  as this user's referrals (calls assign-referrer on target user)
- Debounced search with cancelled flag and loading state
- Click-outside to close dropdown
- i18n: addReferral, referralAdded keys in all 4 locales
This commit is contained in:
Fringg
2026-03-29 04:02:40 +03:00
parent 63f7fa0a31
commit 222a1239ef
5 changed files with 153 additions and 0 deletions

View File

@@ -2736,6 +2736,8 @@
"noReferrals": "هنوز معرفی‌ای نیست",
"removeReferral": "حذف معرفی",
"referralRemoved": "معرفی حذف شد",
"addReferral": "افزودن معرفی",
"referralAdded": "معرفی اضافه شد",
"searchPlaceholder": "جستجو بر اساس نام، ایمیل یا شناسه تلگرام...",
"alreadyReferred": "قبلاً معرفی شده",
"noUsersFound": "کاربری یافت نشد"