Updated glitch files to use the new Avatar class correctly

th-downstream
Ondřej Hruška 7 years ago
parent e11cd9b141
commit 95314d6854

@ -194,11 +194,7 @@ Here, we render our component using all the things we've defined above.
<div>
<a href={account.get('url')} target='_blank' rel='noopener'>
<span className='account__header__avatar'>
<Avatar
src={account.get('avatar')}
staticSrc={account.get('avatar_static')}
size={90}
/>
<Avatar account={account} size={90} />
</span>
<span
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'>{
friend ? (
<AvatarOverlay
staticSrc={account.get('avatar_static')}
overlaySrc={friend.get('avatar_static')}
/>
<AvatarOverlay account={account} friend={friend} />
) : (
<Avatar
src={account.get('avatar')}
staticSrc={account.get('avatar_static')}
size={48}
/>
<Avatar account={account} size={48} />
)
}</div>
<DisplayName account={account} />

Loading…
Cancel
Save