-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Loading Skeletons #12507
Add Loading Skeletons #12507
Conversation
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Just a small remark that we need to be careful with the hardcoded width/height numbers. Not sure if there's a dynamic solution for it, but good for now.
@onyb I have created an issue for this: brave/brave-browser#21701 |
A Storybook has been deployed to preview UI for the latest push |
* Added loading skeleton component * Added loading skeleton to portfolio asset item * Added loading skeleton for portfolio balance * Added loading skeleton component to shared * Added a utility function to get a random number within a specified range * Use unbiasedRandom to generate width
This PR adds loading skeletons to the following areas of wallet UI:
Transaction List Loading Skeleton will be added in a separate PR.
Resolves brave/brave-browser#21339
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Loading.Skeleton.1.mov
Loading.Skeleton.2.mov