mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 17:45:10 +01:00
29 lines
643 B
JavaScript
29 lines
643 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
|
|
},
|
|
|
|
render() {
|
|
return (
|
|
<TableItemWrapper
|
|
columnList={this.props.columnList}
|
|
columnContent={this.props.columnContent}
|
|
columnWidth={12} />
|
|
);
|
|
}
|
|
});
|
|
|
|
export default TableItem;
|