Page MenuHomePhabricator

[web] Introduce placeholder `EmojiAvatarSelectionModal`
ClosedPublic

Authored by atul on Jun 20 2023, 12:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 1:44 PM
Unknown Object (File)
Sat, Dec 14, 7:16 AM
Unknown Object (File)
Sat, Dec 7, 3:23 AM
Unknown Object (File)
Fri, Dec 6, 9:50 PM
Unknown Object (File)
Fri, Nov 29, 7:52 PM
Unknown Object (File)
Mon, Nov 25, 2:49 PM
Unknown Object (File)
Mon, Nov 25, 1:47 PM
Unknown Object (File)
Nov 23 2024, 1:07 PM
Subscribers

Details

Summary

Introduce placeholder EmojiAvatarSelectionModal component. Modal opens when "Select emoji" MenuItem in EditUserAvatarMenu is clicked.

Layout/styling/functionality will be introduced incrementally in subsequent diffs.


Depends on D8264

Test Plan

Opens and looks about as expected:

03509c.png (256×1 px, 20 KB)

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Jun 20 2023, 1:14 PM

(This really should have been named something like EmojiUserAvatarSelectionModal since it's UserAvatar-specific. Common parts will be factored out when I get to ThreadAvatars, but for now it's pretty user avatar-specific)

Looks good, just left some style preferences inline

web/avatars/edit-user-avatar-menu.react.js
27

Would personally prefer directly destructuring pushModal here

29–31

Could use shorthand here

web/avatars/emoji-avatar-selection-modal.react.js
10

Would personally prefer directly destructuring popModal here

This revision is now accepted and ready to land.Jun 21 2023, 10:39 AM

rebase before addressing @rohan's feedback