Page MenuHomePhabricator

[native] Use Alert from old useSaveUserAvatar in new setUserAvatar
ClosedPublic

Authored by ashoat on May 29 2023, 5:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 27, 7:24 PM
Unknown Object (File)
Sun, Nov 10, 1:59 PM
Unknown Object (File)
Oct 27 2024, 8:19 AM
Unknown Object (File)
Oct 22 2024, 2:57 PM
Unknown Object (File)
Oct 15 2024, 5:48 PM
Unknown Object (File)
Sep 29 2024, 4:46 AM
Unknown Object (File)
Sep 29 2024, 4:46 AM
Unknown Object (File)
Sep 29 2024, 4:46 AM
Subscribers

Details

Summary

In the last diff I removed useSaveUserAvatar, but after comparing the Alert code I think the old code was better.

This diff migrates us to using that Alert code across all callsites.

Depends on D8018

Test Plan

Flow / careful reading, make sure app still runs

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.May 30 2023, 9:13 AM
native/avatars/edit-user-avatar-provider.react.js
41 ↗(On Diff #27235)

very minor, but personally would prefer if the function name began with a verb

eg displayFailureAlert or showFailureAlert