add search button for searching

This commit is contained in:
Wikzyy
2025-04-16 13:34:40 +07:00
parent d281ff0a9f
commit 95af177099
5 changed files with 61 additions and 11 deletions

View File

@ -86,7 +86,7 @@ const ManageSucosContextProvider = ({ children }: { children: React.ReactNode })
const columns = useMemo<ColumnDef<any>[]>(
() => [
{
accessorFn: (row) => row.sucos_name,
accessorFn: (row) => row.name,
id: 'sucos_name',
filterFn: (row, columnId, filterValue) => {
const value = row.getValue<string>(columnId);
@ -100,7 +100,7 @@ const ManageSucosContextProvider = ({ children }: { children: React.ReactNode })
}
},
{
accessorKey: 'posto_name',
accessorKey: 'posto.name',
id: 'posto_name',
filterFn: (row, columnId, filterValue) => {
const value = row.getValue<string>(columnId);