mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
18 lines
369 B
React
18 lines
369 B
React
|
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;
|