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

@@ -2735,6 +2735,8 @@
"noReferrals": "暂无推荐",
"removeReferral": "移除推荐",
"referralRemoved": "推荐已移除",
"addReferral": "添加推荐",
"referralAdded": "推荐已添加",
"searchPlaceholder": "按名称、邮箱或 Telegram ID 搜索...",
"alreadyReferred": "已有推荐人",
"noUsersFound": "未找到用户"