Updated glitch files to use the new Avatar class correctly
parent
811d895f7b
commit
7de0fa698d
|
@ -194,11 +194,7 @@ Here, we render our component using all the things we've defined above.
|
||||||
<div>
|
<div>
|
||||||
<a href={account.get('url')} target='_blank' rel='noopener'>
|
<a href={account.get('url')} target='_blank' rel='noopener'>
|
||||||
<span className='account__header__avatar'>
|
<span className='account__header__avatar'>
|
||||||
<Avatar
|
<Avatar account={account} size={90} />
|
||||||
src={account.get('avatar')}
|
|
||||||
staticSrc={account.get('avatar_static')}
|
|
||||||
size={90}
|
|
||||||
/>
|
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
className='account__header__display-name'
|
className='account__header__display-name'
|
||||||
|
|
|
@ -216,16 +216,9 @@ if we have a `friend` and a normal `<Avatar>` if we don't.
|
||||||
>
|
>
|
||||||
<div className='status__avatar'>{
|
<div className='status__avatar'>{
|
||||||
friend ? (
|
friend ? (
|
||||||
<AvatarOverlay
|
<AvatarOverlay account={account} friend={friend} />
|
||||||
staticSrc={account.get('avatar_static')}
|
|
||||||
overlaySrc={friend.get('avatar_static')}
|
|
||||||
/>
|
|
||||||
) : (
|
) : (
|
||||||
<Avatar
|
<Avatar account={account} size={48} />
|
||||||
src={account.get('avatar')}
|
|
||||||
staticSrc={account.get('avatar_static')}
|
|
||||||
size={48}
|
|
||||||
/>
|
|
||||||
)
|
)
|
||||||
}</div>
|
}</div>
|
||||||
<DisplayName account={account} />
|
<DisplayName account={account} />
|
||||||
|
|
Loading…
Reference in New Issue