forked from p15670423/monkey
Fixed CR comments
This commit is contained in:
parent
35e7be1361
commit
d73e846419
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import '../../../styles/Collapse.scss'
|
||||
import ReactTable from "react-table";
|
||||
import { renderMachineFromSystemData, renderMachine, scanStatus } from "./Helpers"
|
||||
import { renderMachineFromSystemData, renderMachine, ScanStatus } from "./Helpers"
|
||||
|
||||
|
||||
class T1018 extends React.Component {
|
||||
|
@ -22,8 +22,8 @@ class T1018 extends React.Component {
|
|||
return ([{
|
||||
columns: [
|
||||
{Header: 'Machine', id: 'machine', accessor: x => renderMachineFromSystemData(x.monkey), style: { 'whiteSpace': 'unset' }},
|
||||
{Header: 'Started', id: 'started', accessor: x => x.started, style: { 'whiteSpace': 'unset' }},
|
||||
{Header: 'Finished', id: 'finished', accessor: x => x.finished, style: { 'whiteSpace': 'unset' }},
|
||||
{Header: 'First scan', id: 'started', accessor: x => x.started, style: { 'whiteSpace': 'unset' }},
|
||||
{Header: 'Last scan', id: 'finished', accessor: x => x.finished, style: { 'whiteSpace': 'unset' }},
|
||||
{Header: 'Systems found', id: 'systems', accessor: x => T1018.renderMachines(x.machines), style: { 'whiteSpace': 'unset' }},
|
||||
]
|
||||
}])};
|
||||
|
@ -33,7 +33,7 @@ class T1018 extends React.Component {
|
|||
<div>
|
||||
<div>{this.props.data.message}</div>
|
||||
<br/>
|
||||
{this.props.data.status === scanStatus.USED ?
|
||||
{this.props.data.status === ScanStatus.USED ?
|
||||
<ReactTable
|
||||
columns={T1018.getScanInfoColumns()}
|
||||
data={this.props.data.scan_info}
|
||||
|
|
Loading…
Reference in New Issue