Skip to content

Commit eda4cba

Browse files
authored
Merge pull request #6 from ninetynine/feature/clickable-class
Add class to table when onRowClick callback is passed
2 parents 32a1b60 + b89a184 commit eda4cba

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dist/table.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/table.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ const Table = (
169169
<div
170170
{...rest}
171171
className={classNames([
172-
className, 'react-dynamic-table'
172+
className, 'react-dynamic-table',
173+
{ 'react-dynamic-table-clickable': onRowClick !== NOOP }
173174
])}
174175
>
175176
<table>

0 commit comments

Comments
 (0)