mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
18 lines
374 B
JavaScript
18 lines
374 B
JavaScript
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,
|
|
},
|
|
|
|
render() {
|
|
return (
|
|
<img src={this.props.content} width="50" />
|
|
);
|
|
}
|
|
});
|
|
|
|
export default TableItemImg; |