update use accessorKey on posto

This commit is contained in:
Wikzyy
2025-03-16 21:24:20 +07:00
parent 34872ac21d
commit 075c89c163
2 changed files with 4 additions and 3 deletions

View File

@ -94,8 +94,9 @@ const ManagePostoAdmsContextProvider = ({ children }: { children: React.ReactNod
}
},
{
accessorFn: (row) => row.posto_adms_name,
id: 'posto_adms_name',
// accessorFn: (row) => row.posto_adms_name,
// id: 'posto_adms_name',
accessorKey: 'posto_adms_name',
header: ({ column }) => (
<DataGridColumnHeader title="Posto Administrativo Name" column={column} />
),

View File

@ -15,7 +15,7 @@ const ListToolbar = () => {
<KeenIcon icon="magnifier" />
<input
type="text"
placeholder="Search Aldeias"
placeholder="Search Products"
value={(table.getColumn('name')?.getFilterValue() as string) ?? ''}
onChange={(event) => table.getColumn('name')?.setFilterValue(event.target.value)}
/>