Skip to content

Commit 5960a46

Browse files
added new class for row updated (#4083)
* added new class for row updated * fixed lint issue
1 parent fa79a02 commit 5960a46

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

packages/react/src/components/Table/TableBody/TableBodyRow/TableBodyRow.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@ const TableBodyRow = ({
441441
hasRowNesting && nestingChildCount === 0,
442442
[`${iotPrefix}--table__row--dragging`]: isDragRow,
443443
[`${iotPrefix}--table__row--softdeleted`]: values?.[deletedAttribute],
444+
// eslint-disable-next-line no-underscore-dangle
445+
[`${iotPrefix}--table__row--updated`]: values?._updated,
444446
})}
445447
ariaLabel={clickToCollapseAria}
446448
expandIconDescription={clickToCollapseAria}
@@ -480,6 +482,8 @@ const TableBodyRow = ({
480482
hasRowSelection === 'single' && isSelected && !useRadioButtonSingleSelect,
481483
[`${iotPrefix}--table__row--dragging`]: isDragRow,
482484
[`${iotPrefix}--table__row--softdeleted`]: values?.[deletedAttribute],
485+
// eslint-disable-next-line no-underscore-dangle
486+
[`${iotPrefix}--table__row--updated`]: values?._updated,
483487
})}
484488
{...dragEnterLeaveHandlers}
485489
>
@@ -502,6 +506,8 @@ const TableBodyRow = ({
502506
[`${iotPrefix}--expandable-tablerow--last-child`]: isLastChild,
503507
[`${iotPrefix}--table__row--dragging`]: isDragRow,
504508
[`${iotPrefix}--table__row--softdeleted`]: values?.[deletedAttribute],
509+
// eslint-disable-next-line no-underscore-dangle
510+
[`${iotPrefix}--table__row--updated`]: values?._updated,
505511
})}
506512
data-row-nesting={hasRowNesting}
507513
data-child-count={nestingChildCount}
@@ -540,6 +546,8 @@ const TableBodyRow = ({
540546
[`${iotPrefix}--table__row--singly-selected`]: isSelected && !useRadioButtonSingleSelect,
541547
[`${iotPrefix}--table__row--background`]: isSelected,
542548
[`${iotPrefix}--table__row--softdeleted`]: values?.[deletedAttribute],
549+
// eslint-disable-next-line no-underscore-dangle
550+
[`${iotPrefix}--table__row--updated`]: values?._updated,
543551
})}
544552
key={id}
545553
onClick={() => {
@@ -563,6 +571,8 @@ const TableBodyRow = ({
563571
[`${iotPrefix}--table__row--selected`]: isSelected,
564572
[`${iotPrefix}--table__row--dragging`]: isDragRow,
565573
[`${iotPrefix}--table__row--softdeleted`]: values?.[deletedAttribute],
574+
// eslint-disable-next-line no-underscore-dangle
575+
[`${iotPrefix}--table__row--updated`]: values?._updated,
566576
})}
567577
key={id}
568578
onClick={() => {

0 commit comments

Comments
 (0)