Digesting Genius avatar images

This commit is contained in:
James Barnsley
2018-08-24 08:35:32 +12:00
parent 5f81b8727c
commit 333a0bac3d
6 changed files with 135 additions and 105 deletions

View File

@ -209,7 +209,7 @@ class Services extends React.Component{
if (user_object){
var user = (
<span className="user">
<Thumbnail circle={true} size="small" image={user_object.photo_url} />
<Thumbnail circle={true} size="small" images={user_object.avatar} />
<span className="user-name">
{user_object.name}
</span>
@ -296,11 +296,10 @@ class Services extends React.Component{
}
if (this.props.genius.me && this.props.core.users["genius:user:"+this.props.genius.me.id]){
var genius_icon = <Thumbnail circle={true} size="small" image={this.props.core.users["genius:user:"+this.props.genius.me.id].photo_url} />
var genius_icon = <Thumbnail circle={true} size="small" images={this.props.core.users["genius:user:"+this.props.genius.me.id].avatar} />
} else {
var genius_icon = <Icon name="genius" type="svg" />
}
return (
<div className="menu">