Skip to content

Commit cc6e4b6

Browse files
authored
Merge pull request #2944 from SUI-Components/table-rowHighlight
fix(components/atom/table): classnames of the row
2 parents c47ae33 + 1e2e6ad commit cc6e4b6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

components/atom/table/src/index.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@ const AtomTable = ({
4444
{body.map((row, index) => (
4545
<tr
4646
key={index}
47-
className={
48-
(cx(`${ROW_BASE_CLASS}`, {
47+
className={cx(
48+
`${ROW_BASE_CLASS}`,
49+
{
4950
[`${ROW_BASE_CLASS}--actionable`]: isRowActionable,
5051
[`${ROW_BASE_CLASS}--zebraStriped`]: zebraStriped
51-
}),
52+
},
5253
typeof rowClass === 'string' && rowClass,
53-
typeof rowClass === 'function' && rowClass(row, index))
54-
}
54+
typeof rowClass === 'function' && rowClass(row, index)
55+
)}
5556
{...(isRowActionable && {onClick: () => handleOnRowClick(index)})}
5657
>
5758
{row.map((cell, index) => {

0 commit comments

Comments
 (0)