Skip to content

Commit

Permalink
#865 Write projects overview in react/javascript
Browse files Browse the repository at this point in the history
* work on Projects and Table
* extent scss file with table classes
* make returned siteId from meta numeric
  • Loading branch information
CalamityC committed May 17, 2024
1 parent 7eb10e1 commit 31e777e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rdmo/core/assets/js/components/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@ const Table = ({
return content
}

// const renderRows = () => {
// return (
// <tbody>
// {data.map((row, index) => (
// <tr key={index}>
// {visibleColumns.map(column => (
// <td key={column}>{formatCellContent(row, column, row[column])}</td>
// ))}
// </tr>
// ))}
// </tbody>
// )
// }

const renderRows = () => {
const sortedRows = sortedData().slice(0, displayedRows)

Expand Down

0 comments on commit 31e777e

Please sign in to comment.