mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
feat: кликабельные имена пользователей в последних платежах
Имена в блоке "Последние платежи" теперь ведут на профиль пользователя /admin/users/:id (десктоп и мобильная версия).
This commit is contained in:
@@ -1062,12 +1062,17 @@ export default function AdminDashboard() {
|
||||
className="border-b border-dark-700/50 transition-colors hover:bg-dark-800/50"
|
||||
>
|
||||
<td className="px-2 py-3">
|
||||
<div className="text-sm font-medium text-dark-100">
|
||||
{payment.display_name}
|
||||
</div>
|
||||
{payment.username && (
|
||||
<div className="text-xs text-dark-500">@{payment.username}</div>
|
||||
)}
|
||||
<button
|
||||
onClick={() => navigate(`/admin/users/${payment.user_id}`)}
|
||||
className="text-left transition-colors hover:opacity-80"
|
||||
>
|
||||
<div className="text-sm font-medium text-dark-100 underline decoration-dark-600 underline-offset-2 hover:decoration-dark-400">
|
||||
{payment.display_name}
|
||||
</div>
|
||||
{payment.username && (
|
||||
<div className="text-xs text-dark-500">@{payment.username}</div>
|
||||
)}
|
||||
</button>
|
||||
</td>
|
||||
<td className="px-2 py-3">
|
||||
<span
|
||||
@@ -1119,9 +1124,12 @@ export default function AdminDashboard() {
|
||||
>
|
||||
{payment.type_display}
|
||||
</span>
|
||||
<span className="truncate text-sm font-medium text-dark-100">
|
||||
<button
|
||||
onClick={() => navigate(`/admin/users/${payment.user_id}`)}
|
||||
className="truncate text-sm font-medium text-dark-100 underline decoration-dark-600 underline-offset-2 transition-colors hover:decoration-dark-400"
|
||||
>
|
||||
{payment.display_name}
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
<span className="ml-2 whitespace-nowrap text-sm font-semibold text-dark-100">
|
||||
{formatAmount(payment.amount_rubles)} {currencySymbol}
|
||||
|
||||
Reference in New Issue
Block a user