HomePhabricator
Diffusion Comm f71b8c481d2b

[web] Introduce `UserEmojiAvatarSelectionModal` component

Description

[web] Introduce UserEmojiAvatarSelectionModal component

Summary:
The EmojiAvatarSelectionModal component was user avatar specific. In this diff we "lift" user avatar-specific logic to UserEmojiAvatarSelectionModal and make EmojiAvatarSelectionModal user/thread-avatar agnostic.

The "API" for EmojiAvatarSelectionModal will be the currentAvatar, defaultAvatar, setEmojiAvatar, and avatarSaveInProgress props. This should allow maximal reuse of EmojiAvatarSelectionModal component.


Depends on D8854

Test Plan:
Setting user emoji avatar continues working as expected/before.

Reviewers: ashoat, ginsu

Reviewed By: ashoat

Subscribers: tomek

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

Details

Provenance
atulAuthored on Aug 21 2023, 3:55 PM
Reviewer
ashoat
Differential Revision
D8855: [web] Introduce `UserEmojiAvatarSelectionModal` component
Parents
rCOMMb1f784b9253c: [web] "Flip the switch" to enable editing of user avatars on `web`
Branches
Unknown
Tags
Unknown