-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: close ledger dialogs properly, notify user if no stacks accounts
- Loading branch information
1 parent
eb7d315
commit 4c3ef03
Showing
9 changed files
with
80 additions
and
66 deletions.
There are no files selected for viewing
38 changes: 19 additions & 19 deletions
38
src/app/features/dialogs/switch-account-dialog/components/account-list-unavailable.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import { memo } from 'react'; | ||
|
||
import { Box, Flex, styled } from 'leather-styles/jsx'; | ||
|
||
export const AccountListUnavailable = memo(() => ( | ||
<Flex | ||
flexDirection="column" | ||
justifyContent="center" | ||
minHeight="120px" | ||
mb="space.06" | ||
px="space.05" | ||
> | ||
<Box> | ||
<styled.span textStyle="label.01">Unable to load account information</styled.span> | ||
<styled.span mt="space.03" textStyle="body.02"> | ||
We're unable to load information about your accounts. This may be a problem with the | ||
wallet's API. If this problem persists, contact support. | ||
</styled.span> | ||
</Box> | ||
</Flex> | ||
)); | ||
export function AccountListUnavailable() { | ||
return ( | ||
<Flex | ||
flexDirection="column" | ||
justifyContent="center" | ||
minHeight="120px" | ||
mb="space.06" | ||
px="space.05" | ||
> | ||
<Box> | ||
<styled.span textStyle="label.01">Unable to load account information</styled.span> | ||
<styled.span mt="space.03" textStyle="body.02"> | ||
We're unable to load information about your accounts. This may be a problem with the | ||
wallet's API. If this problem persists, contact support. | ||
</styled.span> | ||
</Box> | ||
</Flex> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 7 additions & 15 deletions
22
src/app/features/ledger/generic-flows/request-keys/request-keys-flow.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters