update select

This commit is contained in:
2025-11-07 07:44:40 -03:00
parent 0550f508b9
commit c8b4d9beeb
9 changed files with 192 additions and 179 deletions

View File

@@ -3,7 +3,6 @@
import {
flexRender,
getCoreRowModel,
getSortedRowModel,
useReactTable,
type ColumnDef,
type ColumnSort,
@@ -89,6 +88,8 @@ export function DataTable<TData, TValue>({
})
}
// table.getSelectedRowModel().flatRows.map((row) => row.original)
const table = useReactTable({
data,
columns,
@@ -105,6 +106,7 @@ export function DataTable<TData, TValue>({
manualSorting: true,
manualPagination: true,
enableRowSelection: true,
getRowId: (row: any) => row.id,
getCoreRowModel: getCoreRowModel(),
onRowSelectionChange: setRowSelection,
onSortingChange: setSorting,