mirror of
https://github.com/gosticks/react-table.git
synced 2026-12-03 19:21:42 +00:00
♻️ Refactor code (#1588)
This commit is contained in:
committed by
Tanner Linsley
parent
62924dea9b
commit
9c7b1e3313
@@ -96,13 +96,11 @@ function Table({ columns, data }) {
|
||||
(row, i) =>
|
||||
prepareRow(row) || (
|
||||
<div {...row.getRowProps()} className="row body">
|
||||
{row.cells.map(cell => {
|
||||
return (
|
||||
<div {...cell.getCellProps()} className="cell">
|
||||
{cell.render('Cell')}
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
{row.cells.map((cell,index) => (
|
||||
<div {...cell.getCellProps()} key={index} className="cell">
|
||||
{cell.render('Cell')}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
)
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user