1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 18:13:49 +01:00
onion/js/components/ascribe_table/table_item_img.js

22 lines
431 B
JavaScript
Raw Normal View History

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