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)
Mon, Jun 24, 5:42 AM
Unknown Object (File)
Sun, Jun 23, 10:48 AM
Unknown Object (File)
Fri, Jun 21, 2:49 PM
Unknown Object (File)
Thu, Jun 13, 5:12 PM
Unknown Object (File)
Sun, Jun 9, 1:17 AM
Unknown Object (File)
Wed, Jun 5, 10:38 PM
Unknown Object (File)
Sun, Jun 2, 10:26 PM
Unknown Object (File)
Sun, Jun 2, 10:26 PM
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.