Skip to content

Commit

Permalink
Move onClick handing from WebAnalyticsDataTable to TableRow
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Oct 29, 2023
1 parent 98a8dcc commit a658928
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/lib/lemon-ui/LemonTable/TableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function TableRowRaw<T extends Record<string, any>>({
className={clsx(
rowClassNameDetermined,
rowStatusDetermined && `LemonTable__row--status-${rowStatusDetermined}`,
extraProps?.onClick ? 'hover:underline cursor-pointer hover:bg-primary-highlight' : undefined,
className
)}
// eslint-disable-next-line react/forbid-dom-props
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ export const WebStatsTableTile = ({
}
return {
onClick: () => onClick(breakdownValue),
className: 'hover:underline cursor-pointer hover:bg-mark',
}
}
return {
Expand Down

0 comments on commit a658928

Please sign in to comment.