mirror of
https://github.com/ascribe/onion.git
synced 2024-11-16 01:55:07 +01:00
22 lines
431 B
JavaScript
22 lines
431 B
JavaScript
'use strict';
|
|
|
|
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 (
|
|
<span>
|
|
<img src={this.props.content} width="50" />
|
|
</span>
|
|
);
|
|
}
|
|
});
|
|
|
|
export default TableItemImg; |