mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 18:13:49 +01:00
31 lines
727 B
JavaScript
31 lines
727 B
JavaScript
'use strict';
|
|
|
|
import React from 'react';
|
|
|
|
import { ColumnModel } from './models/table_models';
|
|
|
|
import TableItemWrapper from './table_item_wrapper';
|
|
|
|
|
|
let TableItem = React.createClass({
|
|
|
|
propTypes: {
|
|
columnList: React.PropTypes.arrayOf(React.PropTypes.instanceOf(ColumnModel)),
|
|
columnContent: React.PropTypes.object,
|
|
className: React.PropTypes.string,
|
|
onClick: React.PropTypes.func
|
|
},
|
|
|
|
render() {
|
|
return (
|
|
<TableItemWrapper
|
|
onClick={this.props.onClick}
|
|
columnList={this.props.columnList}
|
|
columnContent={this.props.columnContent}
|
|
columnWidth={12} />
|
|
);
|
|
}
|
|
});
|
|
|
|
export default TableItem;
|