diff --git a/prisma/dev.db b/prisma/dev.db index b274d76..77e4e7b 100644 Binary files a/prisma/dev.db and b/prisma/dev.db differ diff --git a/src/app/ui/tables/data-table.tsx b/src/app/ui/tables/data-table.tsx index 4a10277..215030e 100644 --- a/src/app/ui/tables/data-table.tsx +++ b/src/app/ui/tables/data-table.tsx @@ -26,7 +26,7 @@ import { getFilteredRowModel, getCoreRowModel, getPaginationRowModel, - useReactTable, + useReactTable } from "@tanstack/react-table" import { @@ -63,6 +63,8 @@ export function DataTable({ const table = useReactTable({ data, columns, + enableRowSelection: true, + enableMultiRowSelection: true, getCoreRowModel: getCoreRowModel(), getPaginationRowModel: getPaginationRowModel(), onSortingChange: setSorting, @@ -74,7 +76,7 @@ export function DataTable({ sorting, columnFilters, columnVisibility, - }, + } }) const pathname = usePathname() const [filterBy, setFilterBy] = useState(table.getAllColumns()[0]) @@ -174,6 +176,7 @@ export function DataTable({ key={row.id} data-state={row.getIsSelected() && "selected"} tabIndex={0} + onClick={() => row.toggleSelected()} > {row.getVisibleCells().map((cell) => (