♻️ Refactor code (#1588)

This commit is contained in:
Nattasit Moonchanabaht
2019-10-12 16:25:33 -06:00
committed by Tanner Linsley
parent 62924dea9b
commit 9c7b1e3313
+5 -7
View File
@@ -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>
)
)}