diff options
Diffstat (limited to 'app/assets/javascripts/components/components/avatar.jsx')
-rw-r--r-- | app/assets/javascripts/components/components/avatar.jsx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/components/avatar.jsx b/app/assets/javascripts/components/components/avatar.jsx new file mode 100644 index 000000000..7db3eeff7 --- /dev/null +++ b/app/assets/javascripts/components/components/avatar.jsx @@ -0,0 +1,17 @@ +const Avatar = React.createClass({ + + propTypes: { + src: React.PropTypes.string.isRequired + }, + + render () { + return ( + <div style={{ width: '48px', height: '48px', flex: '0 0 auto' }}> + <img src={this.props.src} width={48} height={48} alt='' style={{ display: 'block', borderRadius: '4px' }} /> + </div> + ); + } + +}); + +export default Avatar; |