UI to set Room Avatars

This commit is contained in:
David Baker 2015-10-23 13:47:32 +01:00
parent d66427ddde
commit e844b7aa21
3 changed files with 39 additions and 4 deletions

View file

@ -43,9 +43,13 @@ module.exports = React.createClass({
},
render: function() {
var style = {
'max-width': this.props.width,
'max-height': this.props.height,
};
return (
<img className="mx_RoomAvatar" src={this.state.imageUrl} onError={this.onError}
width={this.props.width} height={this.props.height}
style={style}
/>
);
}