1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/components/table_item_img.js

20 lines
417 B
JavaScript
Raw Normal View History

2015-05-20 15:22:29 +02:00
import React from 'react';
/**
* This could be enhanced further by specifying an optional description for example
*/
let TableItemImg = React.createClass({
propTypes: {
content: React.PropTypes.string.isRequired,
2015-05-20 15:22:29 +02:00
},
render() {
return (
2015-05-20 17:32:06 +02:00
<span>
<img src={this.props.content} width="50" />
</span>
2015-05-20 15:22:29 +02:00
);
}
});
export default TableItemImg;