26 lines
495 B
JavaScript
26 lines
495 B
JavaScript
import React from "react"
|
|
import ItemRow from './ItemRow'
|
|
|
|
export default class Table extends React.Component {
|
|
constructor ({ scanResults }) {
|
|
super()
|
|
this.scanResults = scanResults
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<table>
|
|
<thead></thead>
|
|
<tbody>
|
|
{this.scanResults.map((scanResult) =>
|
|
<ItemRow
|
|
key={scanResult._id}
|
|
scanResult={scanResult}
|
|
/>
|
|
)}
|
|
</tbody>
|
|
</table>
|
|
)
|
|
}
|
|
}
|