1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-16 01:55:07 +01:00
onion/js/components/ascribe_table/table_item_text.js

22 lines
382 B
JavaScript
Raw Normal View History

2015-05-20 15:22:29 +02:00
import React from 'react';
2015-05-20 16:44:45 +02:00
2015-05-20 15:22:29 +02:00
let TableItemText = React.createClass({
propTypes: {
2015-05-26 13:14:35 +02:00
content: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
])
2015-05-20 15:22:29 +02:00
},
render() {
return (
<span>
{this.props.content}
2015-05-20 15:22:29 +02:00
</span>
);
}
});
2015-05-20 16:44:45 +02:00
export default TableItemText;