mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
16 lines
475 B
JavaScript
16 lines
475 B
JavaScript
var React = require('react')
|
|
var md5 = require('md5')
|
|
|
|
module.exports = React.createClass({
|
|
propTypes: {
|
|
email: React.PropTypes.string,
|
|
size: React.PropTypes.string,
|
|
className: React.PropTypes.string
|
|
},
|
|
render: function () {
|
|
return (
|
|
<img className={this.props.className} width={this.props.size} height={this.props.size} src={'http://www.gravatar.com/avatar/' + md5(this.props.email.trim().toLowerCase()) + '?s=' + this.props.size}/>
|
|
)
|
|
}
|
|
})
|