Skip to content
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

fix: endless loading in ledger mode #6016

Merged
merged 1 commit into from
Dec 17, 2024
Merged

fix: endless loading in ledger mode #6016

merged 1 commit into from
Dec 17, 2024

Conversation

alter-eggo
Copy link
Contributor

@alter-eggo alter-eggo commented Dec 17, 2024

Try out Leather build e8f92cdExtension build, Test report, Storybook, Chromatic

e.g when in btc only ledger mode, there is no stacks address, so stx balance request is always in pending status, so we show skeleton loader instead of total balance

will write test in sep pr
Screenshot 2024-12-17 at 15 49 07

@@ -69,7 +69,7 @@ export function AccountCard({
</Flex>
<Flex flexDir={{ base: 'column', md: 'row' }} justify="space-between">
<Box mb="space.05" mt="space.04">
<SkeletonLoader width="200px" height="38px" isLoading={isLoadingBalance}>
<SkeletonLoader width="200px" height="46px" isLoading={isLoadingBalance}>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to prevent slight "jump"

Copy link
Contributor

@tigranpetrossian tigranpetrossian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Ouch. Thanks @alter-eggo!

@alter-eggo alter-eggo merged commit 33881cc into dev Dec 17, 2024
32 checks passed
@alter-eggo alter-eggo deleted the fix/endless-loading branch December 17, 2024 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants