fixed some types, add some labels
This commit is contained in:
1 parent
62b6489abf
commit
1a7dd954e2
23 files changed
+379
-168
No files matched your search
@@ -76,11 +76,19 @@ export default function CardTransactionsPage() {
|
||||
size: 100,
|
||||
},
|
||||
{
|
||||
id: "userId",
|
||||
accessorKey: "userId",
|
||||
header: t("cardTransaction.col.userId", "Ulanyjy ID"),
|
||||
cell: ({ row }) => <span className="text-sm text-muted-foreground">{row.original.userId}</span>,
|
||||
size: 110,
|
||||
id: "user",
|
||||
accessorFn: (row) => row.user?.name ?? "",
|
||||
header: t("cardTransaction.col.user", "Ulanyjy"),
|
||||
cell: ({ row }) => {
|
||||
const user = row.original.user;
|
||||
if (!user) return <span className="text-sm text-muted-foreground">—</span>;
|
||||
return (
|
||||
<button className="text-sm text-primary hover:underline text-left" onClick={() => navigate(`/all-users/${user.id}`)}>
|
||||
{user.name}
|
||||
</button>
|
||||
);
|
||||
},
|
||||
size: 150,
|
||||
},
|
||||
{
|
||||
id: "createdAt",
|
||||
|
||||
Reference in new issue
Block a user