mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
small refactor
This commit is contained in:
parent
b875a9817c
commit
f6dab18cba
@ -27,7 +27,13 @@ let Table = React.createClass({
|
||||
if(this.props.itemList && this.props.itemList.length > 0) {
|
||||
return (
|
||||
<div className="ascribe-table">
|
||||
<TableHeader columnList={this.props.columnList} itemList={this.props.itemList} fetchList={this.props.fetchList} changeOrder={this.props.changeOrder} orderAsc={this.props.orderAsc} orderBy={this.props.orderBy} />
|
||||
<TableHeader
|
||||
columnList={this.props.columnList}
|
||||
itemList={this.props.itemList}
|
||||
fetchList={this.props.fetchList}
|
||||
changeOrder={this.props.changeOrder}
|
||||
orderAsc={this.props.orderAsc}
|
||||
orderBy={this.props.orderBy} />
|
||||
{this.renderChildren()}
|
||||
</div>
|
||||
);
|
||||
|
@ -5,7 +5,7 @@ import TableColumnContentModel from '../../models/table_column_content_model';
|
||||
|
||||
import TableItem from './table_item';
|
||||
|
||||
// This Component is implemented as recommended here: http://stackoverflow.com/a/25723635/1263876
|
||||
// This component is implemented as recommended here: http://stackoverflow.com/a/25723635/1263876
|
||||
let TableItemSelectable = React.createClass({
|
||||
|
||||
propTypes: {
|
||||
@ -27,7 +27,8 @@ let TableItemSelectable = React.createClass({
|
||||
});
|
||||
|
||||
return (
|
||||
<TableItem classNames={tableItemClasses}
|
||||
<TableItem
|
||||
classNames={tableItemClasses}
|
||||
columnList={this.props.columnList}
|
||||
columnContent={this.props.columnContent}
|
||||
onClick={this.selectItem}>
|
||||
|
Loading…
Reference in New Issue
Block a user