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

@@ -3118,6 +3118,8 @@
"noReferrals": "No referrals yet",
"removeReferral": "Remove referral",
"referralRemoved": "Referral removed successfully",
"addReferral": "Add Referral",
"referralAdded": "Referral added successfully",
"searchPlaceholder": "Search by name, email, or Telegram ID...",
"alreadyReferred": "already has referrer",
"noUsersFound": "No users found"