feat: enhance user table phone number display with additional fields and filtering
This commit is contained in:
parent
4f21773cea
commit
680d344215
2 changed files with 5 additions and 2 deletions
|
|
@ -189,7 +189,9 @@ export const UsersTable = (props: { data: UserWChatInfo[] }) => {
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
accessorKey: "telefono",
|
accessorFn: (row) =>
|
||||||
|
`${row.telefono} ${row.nome} ${row.extra_telefono_numero} ${row.extra_telefono_titolo}`,
|
||||||
|
id: "telefono", // ID is required when using accessorFn
|
||||||
header: ({ column }) => (
|
header: ({ column }) => (
|
||||||
<DataTableColumnHeader
|
<DataTableColumnHeader
|
||||||
column={column}
|
column={column}
|
||||||
|
|
@ -212,6 +214,7 @@ export const UsersTable = (props: { data: UserWChatInfo[] }) => {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
filterFn: "includesString",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: "email",
|
accessorKey: "email",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue