update use accessorKey on posto
This commit is contained in:
@ -94,8 +94,9 @@ const ManagePostoAdmsContextProvider = ({ children }: { children: React.ReactNod
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorFn: (row) => row.posto_adms_name,
|
// accessorFn: (row) => row.posto_adms_name,
|
||||||
id: 'posto_adms_name',
|
// id: 'posto_adms_name',
|
||||||
|
accessorKey: 'posto_adms_name',
|
||||||
header: ({ column }) => (
|
header: ({ column }) => (
|
||||||
<DataGridColumnHeader title="Posto Administrativo Name" column={column} />
|
<DataGridColumnHeader title="Posto Administrativo Name" column={column} />
|
||||||
),
|
),
|
||||||
|
|||||||
@ -15,7 +15,7 @@ const ListToolbar = () => {
|
|||||||
<KeenIcon icon="magnifier" />
|
<KeenIcon icon="magnifier" />
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Search Aldeias"
|
placeholder="Search Products"
|
||||||
value={(table.getColumn('name')?.getFilterValue() as string) ?? ''}
|
value={(table.getColumn('name')?.getFilterValue() as string) ?? ''}
|
||||||
onChange={(event) => table.getColumn('name')?.setFilterValue(event.target.value)}
|
onChange={(event) => table.getColumn('name')?.setFilterValue(event.target.value)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user