This commit is contained in:
David Arranz 2025-11-24 09:36:57 +01:00
parent 5a6a81738f
commit fe1faaab4d

View File

@ -223,7 +223,7 @@ export function DataTable<TData, TValue>({
{table.getRowModel().rows.length ? ( {table.getRowModel().rows.length ? (
table.getRowModel().rows.map((row, rowIndex) => ( table.getRowModel().rows.map((row, rowIndex) => (
<TableRow <TableRow
className={"group bg-background cursor-pointer"} className={"group bg-background"}
data-state={row.getIsSelected() && "selected"} data-state={row.getIsSelected() && "selected"}
key={row.id} key={row.id}
onClick={(e) => onRowClick?.(row.original, rowIndex, e)} onClick={(e) => onRowClick?.(row.original, rowIndex, e)}