Split table into component
This commit is contained in:
18
app/pages/home/ItemRow.js
Normal file
18
app/pages/home/ItemRow.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from "react"
|
||||
|
||||
export default class ItemRow extends React.Component {
|
||||
constructor ({ scanResult }) {
|
||||
super()
|
||||
this.scanResult = scanResult
|
||||
}
|
||||
|
||||
render () {
|
||||
return (
|
||||
<tr>
|
||||
<td>{this.scanResult.name}</td>
|
||||
<td>{this.scanResult.partsPrice}</td>
|
||||
<td>{this.scanResult.setPrice}</td>
|
||||
</tr>
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user