Details
Details
- Reviewers
ashoat atul - Commits
- rCOMM8e566ad207f3: [web] introduce UserAvatar component
I was able to render all three avatar types: Emoji, Image, and ENS
Emoji:
Image (by hardcoding const avatarInfo = { type: 'image', uri: 'https://picsum.photos/200' }):
ENS (by hardcoding const avatarInfo = { type: 'ens' } and the same ensAvatarURI I tested with in D7246):
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
web/components/user-avatar.react.js | ||
---|---|---|
14 | The currentUserInfo in the profile screen is of type ?CurrentUserInfo. On the chance that the user experience this case, getAvatarForUser will handle this by returning an anonymous avatar (👤) | |
20–23 | We want userInfo so that we can use getAvatarForUser and handle cases where the user does not have an avatar already set or they are an anonymous user, but they can still get a ClientAvatar. getAvatarForUser returns a ClientAvatar |