1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 09:50:31 +01:00
onion/js/components/ascribe_table/table_item_text.js

24 lines
397 B
JavaScript
Raw Normal View History

'use strict';
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;