Page MenuHomePhabricator

[web] Add `showSpinner` prop to `Avatar` component
ClosedPublic

Authored by atul on Jun 21 2023, 3:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 9:31 PM
Unknown Object (File)
Sat, Nov 9, 7:25 PM
Unknown Object (File)
Sat, Nov 9, 4:23 PM
Unknown Object (File)
Sat, Nov 9, 12:44 PM
Unknown Object (File)
Sat, Nov 9, 10:16 AM
Unknown Object (File)
Thu, Nov 7, 3:38 AM
Unknown Object (File)
Wed, Oct 23, 7:34 PM
Unknown Object (File)
Sep 27 2024, 3:09 AM
Subscribers

Details

Summary

Add showSpinner?: boolean prop to the Avatar component and display LoadingIndicator over Avatar if set to true.


Depends on D8283

Test Plan

Looks 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:26 PM
atul edited the test plan for this revision. (Show Details)
web/avatars/avatar.react.js
68–77 ↗(On Diff #27984)

Made sure things looked okay at each size:

c6c316.png (102×142 px, 9 KB)

fce579.png (74×70 px, 6 KB)

e3c706.png (58×98 px, 5 KB)

4e0a45.png (256×314 px, 38 KB)

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.