This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
import { Component } from 'react'
|
||||
|
||||
export default class ItemRow extends 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>
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ export default class Table extends Component {
|
||||
{
|
||||
field: 'name',
|
||||
headerName: 'Name',
|
||||
flex: 1,
|
||||
flex: 2,
|
||||
renderCell: (cellValues) => {
|
||||
return (
|
||||
<Link
|
||||
@@ -44,6 +44,12 @@ export default class Table extends Component {
|
||||
]
|
||||
}
|
||||
|
||||
static getInitialProps () {
|
||||
return {
|
||||
props: { scanResults: [] }
|
||||
}
|
||||
}
|
||||
|
||||
render () {
|
||||
return (
|
||||
<div style={{ height: '90vh', width: '100%' }}>
|
||||
|
||||
Reference in New Issue
Block a user