Skip to content

Commit a811ac9

Browse files
committed
fix: conditionally apply cursor pointer class based on destination
1 parent 81c3397 commit a811ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/DataTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function DataTable<TData, TValue>({
9696
<TableRow
9797
key={row.id}
9898
data-state={row.getIsSelected() && 'selected'}
99-
className="cursor-pointer"
99+
className={destination ? 'cursor-pointer' : ''}
100100
tabIndex={0}
101101
onClick={(e) => handleRowClick(destination, e)}
102102
onKeyDown={(e) => handleRowKeyDown(destination, e)}

0 commit comments

Comments
 (0)