Skip to content

Commit

Permalink
refactor: fix linter issues (DHIS2-11840)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Sep 30, 2021
1 parent 6377e6a commit 8fa7b74
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/data-workspace/display/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ const Table = ({ title, columns, rows }) => (
<>
<DataTable className={styles.dataTable}>
<TableHead>
<DataTableToolbar columns={columns.length}>{title}</DataTableToolbar>
<DataTableToolbar columns={columns.length}>
{title}
</DataTableToolbar>
<DataTableRow>
<DataTableColumnHeader className={styles.cell}>
<span className={styles.labelCellContent}>
Expand All @@ -39,7 +41,10 @@ const Table = ({ title, columns, rows }) => (

{columns.slice(1).map(column => {
return (
<DataTableColumnHeader key={column} className={styles.cell}>
<DataTableColumnHeader
key={column}
className={styles.cell}
>
{column}
</DataTableColumnHeader>
)
Expand All @@ -59,7 +64,10 @@ const Table = ({ title, columns, rows }) => (
</DataTableCell>

{cells.map((value, index) => (
<DataTableCell key={index} className={styles.cell}>
<DataTableCell
key={index}
className={styles.cell}
>
{value}
</DataTableCell>
))}
Expand Down

0 comments on commit 8fa7b74

Please sign in to comment.