|
|
@ -47,13 +47,13 @@ class DataTableRow extends Component {
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
const {dataItem} = this.state;
|
|
|
|
const {dataItem} = this.state;
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<TableRow onClick={this._handleClick.bind(this)} >
|
|
|
|
<TableRow key={this.props.key} onClick={this._handleClick.bind(this)} >
|
|
|
|
{Object.keys(dataItem).map((key) => {
|
|
|
|
{Object.keys(dataItem).map((key) => {
|
|
|
|
if (key !== 'id') {
|
|
|
|
if (key !== 'id') {
|
|
|
|
return <TableRowColumn style={{alignItems: 'center'}}
|
|
|
|
return <TableRowColumn style={{alignItems: 'center'}}
|
|
|
|
key={key}>{dataItem[key]}</TableRowColumn>
|
|
|
|
key={key}>{dataItem[key]}</TableRowColumn>
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return <TableRowColumn/>
|
|
|
|
return <TableRowColumn key={key}/>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} )}
|
|
|
|
} )}
|
|
|
|