HomePhabricator
Diffusion Comm 41c71a9612a4

[web] introduce ThreadAvatar component

Description

[web] introduce ThreadAvatar component

Summary:
After some discussion with @ashoat and @atul about how to fetch the ens avatars we decided to have two separate components to render avatars: UserAvatar and ThreadAvatar. This diff handles ThreadAvatar.

This diff is pretty much a copy of D7262

Depends on D7273

Test Plan:
I was able to render all three avatar types: Emoji, Image, and ENS:

Emoji:

Screenshot 2023-04-03 at 2.25.49 AM.png (2×3 px, 939 KB)

Image (by hardcoding const avatarInfo = { type: 'image', uri: 'https://picsum.photos/200' }):

Screenshot 2023-04-03 at 2.34.26 AM.png (2×3 px, 951 KB)

ENS (by hardcoding const avatarInfo = { type: 'ens' } and the same ensAvatarURI I tested in D7262):

Screenshot 2023-04-03 at 2.26.01 AM.png (2×3 px, 942 KB)

Reviewers: ashoat, atul

Reviewed By: atul

Subscribers: tomek, ashoat, atul

Differential Revision: https://phab.comm.dev/D7274

Details

Provenance
ginsuAuthored on Apr 4 2023, 11:18 AM
Reviewer
atul
Differential Revision
D7274: [web] introduce ThreadAvatar component
Parents
rCOMM8e566ad207f3: [web] introduce UserAvatar component
Branches
Unknown
Tags
Unknown