1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

small refactor

This commit is contained in:
Tim Daubenschütz 2015-05-27 08:24:13 +02:00
parent b875a9817c
commit f6dab18cba
2 changed files with 10 additions and 3 deletions

View File

@ -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>
);

View File

@ -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}>