Page MenuHomePhabricator

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

Authored by atul on Jun 20 2023, 10:24 AM.
Tags
None
Referenced Files
F3530010: D8260.diff
Tue, Dec 24, 10:50 PM
Unknown Object (File)
Fri, Dec 6, 8:26 PM
Unknown Object (File)
Thu, Nov 28, 11:05 PM
Unknown Object (File)
Mon, Nov 25, 2:48 PM
Unknown Object (File)
Nov 23 2024, 1:06 PM
Unknown Object (File)
Nov 23 2024, 1:06 PM
Unknown Object (File)
Nov 23 2024, 1:06 PM
Unknown Object (File)
Nov 23 2024, 7:04 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.