-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8670d98
commit 60113cb
Showing
9 changed files
with
77 additions
and
52 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React, { FC } from 'react'; | ||
import { Flex, Box, Text } from '@blockstack/ui'; | ||
|
||
import { WalletType } from '../../../types/wallet-type'; | ||
import failedCrossSvg from '../../../assets/images/failed-cross.svg'; | ||
|
||
interface StackingFailedProps { | ||
walletType: WalletType; | ||
} | ||
|
||
export const StackingFailed: FC<StackingFailedProps> = ({ children, walletType }) => ( | ||
<Flex | ||
flexDirection="column" | ||
alignItems="center" | ||
textAlign="center" | ||
px="extra-loose" | ||
mb="extra-loose" | ||
> | ||
<Box mx="auto" my="extra-loose"> | ||
<img src={failedCrossSvg} alt="" /> | ||
</Box> | ||
<Text as="h1" textStyle="display.small" display="block"> | ||
Unable to verify transaction | ||
</Text> | ||
{children && ( | ||
<Text as="p" mt="base" mx="loose" display="block" textStyle="body.large"> | ||
{children} | ||
</Text> | ||
)} | ||
{walletType === 'ledger' && ( | ||
<Text textStyle="caption" color="ink.600" maxWidth="300px" mt="base"> | ||
Make sure you're using the same Ledger device you used to create this wallet | ||
</Text> | ||
)} | ||
</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
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