Page MenuHomePhabricator

[web] Add `removeUserAvatar` to `EditUserAvatarMenu`
ClosedPublic

Authored by atul on Jun 20 2023, 10:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 5:23 PM
Unknown Object (File)
Sat, Nov 9, 5:23 PM
Unknown Object (File)
Sat, Nov 9, 4:23 PM
Unknown Object (File)
Sat, Nov 9, 12:57 PM
Unknown Object (File)
Sat, Nov 9, 12:44 PM
Unknown Object (File)
Sat, Nov 9, 10:17 AM
Unknown Object (File)
Fri, Nov 8, 6:47 PM
Unknown Object (File)
Thu, Nov 7, 10:21 AM
Subscribers

Details

Summary

Sets "Reset to default" menu item onClick to removeUserAvatar which removes the user's avatar.

Test Plan

Works as expected. User had image avatar, now they have default emoji avatar:

46dbcb.png (994×996 px, 91 KB)

Diff Detail

Repository
rCOMM Comm
Branch
arcpatch-D8260 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Jun 20 2023, 10:42 AM
rohan added inline comments.
web/avatars/edit-user-avatar-menu.react.js
20–23 ↗(On Diff #27903)

You could probably use shorthand here

This revision is now accepted and ready to land.Jun 21 2023, 10:27 AM
web/avatars/edit-user-avatar-menu.react.js
20–23 ↗(On Diff #27903)

Thanks for catching that, will update.

rebase before addressing feedback

This revision was landed with ongoing or failed builds.Jun 21 2023, 11:30 AM
This revision was automatically updated to reflect the committed changes.