Page MenuHomePhabricator

[native] move setting ens avatar logic from avatar hooks to edit user avatar provider
ClosedPublic

Authored by ginsu on Apr 25 2023, 2:24 PM.
Tags
None
Referenced Files
F1779911: D7627.id25869.diff
Sat, May 18, 2:01 AM
F1779910: D7627.id25866.diff
Sat, May 18, 2:01 AM
F1779909: D7627.id25744.diff
Sat, May 18, 2:01 AM
F1779908: D7627.id.diff
Sat, May 18, 2:01 AM
F1779638: D7627.id25720.diff
Fri, May 17, 11:39 PM
Unknown Object (File)
Mon, May 13, 7:23 AM
Unknown Object (File)
Sun, Apr 28, 1:35 PM
Unknown Object (File)
Sun, Apr 28, 1:35 PM
Subscribers

Details

Summary

This diff moves the logic for setting an ens avatar from the avatar hooks to the new edit user avatar provider

Depends on D7626

Test Plan

Able to set ens avatar with expected behavior with and the loading state returns the correct values when the set avatar request is happening

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu requested review of this revision.Apr 25 2023, 2:43 PM

Please address inline comment before landing

native/avatars/edit-user-avatar-provider.react.js
65 ↗(On Diff #25720)

We should still throw here so we emit the right action. Otherwise you're implicitly returning undefined, which is an anti-pattern

(We should add an ESLint rule for this... just created ENG-3776 to track)

This revision is now accepted and ready to land.Apr 25 2023, 6:03 PM
This revision was landed with ongoing or failed builds.Apr 27 2023, 10:28 AM
This revision was automatically updated to reflect the committed changes.