-
Notifications
You must be signed in to change notification settings - Fork 29
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
f45d25c
commit 516019a
Showing
9 changed files
with
427 additions
and
169 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
69 changes: 69 additions & 0 deletions
69
apps/dapp/src/components/Pages/Core/DappPages/SpiceBazaar/Earn/DisclaimerModal.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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import styled from 'styled-components'; | ||
import { Button } from 'components/Button/Button'; | ||
import { Popover } from 'components/Pages/Core/DappPages/SpiceBazaar/components/Popover'; | ||
|
||
interface IProps { | ||
isOpen: boolean; | ||
onClose: () => void; | ||
} | ||
|
||
export const DisclaimerModal: React.FC<IProps> = ({ isOpen, onClose }) => { | ||
return ( | ||
<> | ||
<Popover | ||
isOpen={isOpen} | ||
onClose={onClose} | ||
closeOnClickOutside | ||
showCloseButton | ||
> | ||
<ModalContainer> | ||
<Title>TGLD Warning</Title> | ||
<Text> | ||
TGLD cannot be cross chained to another address. Multisig wallets | ||
might have a different address on different chains. | ||
</Text> | ||
<ConsentButton onClick={onClose}>I Understand</ConsentButton> | ||
</ModalContainer> | ||
</Popover> | ||
</> | ||
); | ||
}; | ||
|
||
const ModalContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
color: ${({ theme }) => theme.palette.brand}; | ||
width: 400px; | ||
padding: 0px 20px 0px 20px; | ||
margin-top: 22px; | ||
gap: 20px; | ||
`; | ||
|
||
const Title = styled.div` | ||
font-size: 24px; | ||
color: ${({ theme }) => theme.palette.brandLight}; | ||
`; | ||
|
||
const Text = styled.div` | ||
color: ${({ theme }) => theme.palette.brand}; | ||
font-size: 16px; | ||
line-height: 20px; | ||
text-align: center; | ||
`; | ||
|
||
const ConsentButton = styled(Button)` | ||
padding: 12px 20px 12px 20px; | ||
margin: 0px 0px 0px 0px; | ||
width: max-content; | ||
height: min-content; | ||
background: ${({ theme }) => theme.palette.gradients.dark}; | ||
border: 1px solid ${({ theme }) => theme.palette.brandDark}; | ||
box-shadow: 0px 0px 20px rgba(222, 92, 6, 0.4); | ||
border-radius: 10px; | ||
font-size: 16px; | ||
line-height: 19px; | ||
text-transform: uppercase; | ||
color: ${({ theme }) => theme.palette.brandLight}; | ||
`; |
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
Oops, something went wrong.