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
Unknown Object (File)
Mon, Nov 11, 3:15 AM
Unknown Object (File)
Sun, Oct 27, 12:38 AM
Unknown Object (File)
Sun, Oct 27, 12:38 AM
Unknown Object (File)
Sun, Oct 27, 12:38 AM
Unknown Object (File)
Sun, Oct 27, 12:38 AM
Unknown Object (File)
Sun, Oct 27, 12:38 AM
Unknown Object (File)
Sun, Oct 27, 12:35 AM
Unknown Object (File)
Fri, Oct 25, 7:16 AM
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.