Page MenuHomePhabricator

[web] Remove `LoadingIndicator` from `EditUserAvatar`
ClosedPublic

Authored by atul on Jun 21 2023, 3:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 5:43 PM
Unknown Object (File)
Sat, Nov 9, 4:03 PM
Unknown Object (File)
Sat, Nov 9, 12:58 PM
Unknown Object (File)
Sat, Nov 9, 12:58 PM
Unknown Object (File)
Sat, Nov 9, 10:16 AM
Unknown Object (File)
Fri, Nov 8, 12:52 PM
Unknown Object (File)
Fri, Nov 8, 2:54 AM
Unknown Object (File)
Sep 27 2024, 3:09 AM
Subscribers

Details

Summary

In D8285 we introduced a showSpinner prop to the Avatar component. In this diff we remove the LoadingIndicator from EditUserAvatar component and instead pass showSpinner down to Avatar to take advantage of that.

This deduplicates redundant spinner code. Now that we have a "toggleable" spinner in Avatar, components derived from it can use that spinner "for free."


Depends on D8285

Test Plan

Things continue to look as expected:

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Jun 21 2023, 3:40 PM
atul edited the test plan for this revision. (Show Details)
atul edited the summary of this revision. (Show Details)
atul edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Jun 22 2023, 6:29 AM
This revision was landed with ongoing or failed builds.Jun 23 2023, 2:07 PM
This revision was automatically updated to reflect the committed changes.