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)
Nov 23 2024, 1:52 PM
Unknown Object (File)
Nov 23 2024, 1:52 PM
Unknown Object (File)
Nov 23 2024, 1:51 PM
Unknown Object (File)
Nov 23 2024, 1:51 PM
Unknown Object (File)
Nov 23 2024, 1:51 PM
Unknown Object (File)
Nov 9 2024, 9:31 PM
Unknown Object (File)
Nov 9 2024, 7:25 PM
Unknown Object (File)
Nov 9 2024, 4:23 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
Branch
master
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

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.