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)
Tue, Dec 31, 1:44 AM
Unknown Object (File)
Tue, Dec 31, 1:44 AM
Unknown Object (File)
Tue, Dec 31, 1:44 AM
Unknown Object (File)
Tue, Dec 31, 1:43 AM
Unknown Object (File)
Tue, Dec 31, 1:36 AM
Unknown Object (File)
Wed, Dec 25, 11:29 AM
Unknown Object (File)
Wed, Dec 25, 11:02 AM
Unknown Object (File)
Nov 23 2024, 1:52 PM
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
No Lint Coverage
Unit
No Test Coverage

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.