-
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
778e3e5
commit 01916eb
Showing
18 changed files
with
604 additions
and
57 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 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,40 @@ | ||
import React, { FC } from 'react'; | ||
import { LargeCheckmark } from '@components/icons/large-checkmark'; | ||
import { Button, Flex, Modal, Text } from '@blockstack/ui'; | ||
import { useHotkeys } from 'react-hotkeys-hook'; | ||
import { WalletType } from '../../types/wallet-type'; | ||
|
||
interface StackingModalProps { | ||
walletType: WalletType; | ||
onClose(): void; | ||
} | ||
|
||
export const StackingModal: FC<StackingModalProps> = props => { | ||
const { onClose } = props; | ||
useHotkeys('esc', onClose, [onClose]); | ||
|
||
return ( | ||
<Modal isOpen maxWidth="488px" minWidth="488px" pt="80px" pb="extra-loose"> | ||
<Flex justifyContent="center"> | ||
<LargeCheckmark /> | ||
</Flex> | ||
<Text textStyle="display.small" display="block" textAlign="center" mt="extra-loose"> | ||
You locked your STX for 2 weeks | ||
</Text> | ||
<Text | ||
textStyle="body.large" | ||
display="block" | ||
textAlign="center" | ||
mt="base-tight" | ||
mx="extra-loose" | ||
> | ||
You’ll receive Bitcoin twice, at the end of every cycle. | ||
</Text> | ||
<Flex justifyContent="flex-end"> | ||
<Button mt="extra-loose" onClick={onClose} mr="extra-loose"> | ||
Close | ||
</Button> | ||
</Flex> | ||
</Modal> | ||
); | ||
}; |
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,47 @@ | ||
import React, { FC } from 'react'; | ||
import { Flex, Text, CloseIcon, Button, ButtonProps } from '@blockstack/ui'; | ||
|
||
export const modalStyle = { | ||
minWidth: ['100%', '488px'], | ||
}; | ||
|
||
interface StackingModalHeaderProps { | ||
onSelectClose: () => void; | ||
} | ||
|
||
export const StackingModalHeader: FC<StackingModalHeaderProps> = ({ children, onSelectClose }) => ( | ||
<Flex | ||
height="84px" | ||
px="extra-loose" | ||
alignItems="center" | ||
borderBottom="1px solid #F0F0F5" | ||
justifyContent="space-between" | ||
> | ||
<Text as="h2" textStyle="display.small"> | ||
{children} | ||
</Text> | ||
<Button | ||
type="button" | ||
right="-16px" | ||
onClick={onSelectClose} | ||
variant="unstyled" | ||
cursor="pointer" | ||
p="tight" | ||
_focus={{ backgroundColor: 'ink.200' }} | ||
> | ||
<CloseIcon size="12px" color="ink.400" /> | ||
</Button> | ||
</Flex> | ||
); | ||
|
||
export const StackingModalFooter: FC = ({ children }) => ( | ||
<Flex justifyContent="flex-end" px="extra-loose" py="base" borderTop="1px solid #F0F0F5"> | ||
{children} | ||
</Flex> | ||
); | ||
|
||
export const StackingModalButton: FC<ButtonProps> = ({ children, ...props }) => ( | ||
<Button ml="base-tight" size="lg" minWidth="70px" {...(props as any)}> | ||
{children} | ||
</Button> | ||
); |
Oops, something went wrong.