• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

react-ui-org / react-ui / 14831340595

05 May 2025 07:31AM UTC coverage: 77.116% (-13.2%) from 90.283%
14831340595

Pull #636

github

web-flow
Merge c233dddc7 into b73b8ec0f
Pull Request #636: Refactoring/miscellaneous jest to playwright

626 of 897 branches covered (69.79%)

Branch coverage included in aggregate %.

695 of 816 relevant lines covered (85.17%)

43.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

37.5
/src/components/Table/_components/TableBodyCell/TableBodyCell.jsx
1
import PropTypes from 'prop-types';
2
import React from 'react';
3
import styles from '../TableCell.module.scss';
4

5
export const TableBodyCell = ({
2✔
6
  format,
7
  id,
8
  isSortingActive,
9
  value,
10
}) => (
11
  <td
×
12
    className={isSortingActive ? styles.isTableCellSortingActive : styles.tableCell}
×
13
    id={id}
14
  >
15
    {format ? format(value) : value}
×
16
  </td>
17
);
18

19
TableBodyCell.defaultProps = {
2✔
20
  format: undefined,
21
  id: undefined,
22
  isSortingActive: false,
23
  value: null,
24
};
25

26
TableBodyCell.propTypes = {
2✔
27
  /**
28
   * Function that can be used to process the column data before displaying them.
29
   */
30
  format: PropTypes.func,
31
  /**
32
   * ID of the HTML <td> element:
33
   */
34
  id: PropTypes.string,
35
  /**
36
   * If `true`, cell is gray marked as sorted.
37
   */
38
  isSortingActive: PropTypes.bool,
39
  /**
40
   * Cell value.
41
   */
42
  // eslint-disable-next-line react/forbid-prop-types
43
  value: PropTypes.any,
44
};
45

46
export default TableBodyCell;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc