-
Notifications
You must be signed in to change notification settings - Fork 44
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
a59b4a2
commit 28a8538
Showing
11 changed files
with
676 additions
and
575 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,68 @@ | ||
import React, { useContext } from 'react'; | ||
import styled, { ThemeProvider, useTheme } from 'styled-components'; | ||
|
||
import { ButtonV2, ImageV2, ItemVV2, SpanV2 } from 'components/reusables/SharedStylingV2'; | ||
import { AppContext } from 'contexts/AppContext'; | ||
import UnlockLogo from '../../../assets/chat/unlock.svg'; | ||
|
||
const UnlockProfile = () => { | ||
const theme = useTheme(); | ||
const { handleConnectWallet } = useContext(AppContext); | ||
return ( | ||
<ThemeProvider theme={theme}> | ||
<ModalContainer> | ||
<ItemVV2 | ||
padding="24px" | ||
gap="32px" | ||
> | ||
<ImageV2 | ||
width={'48px'} | ||
height={'48px'} | ||
src={UnlockLogo} | ||
alt="Unlock Logo" | ||
/> | ||
<ItemVV2 gap="10px"> | ||
<SpanV2 | ||
fontSize="20px" | ||
fontWeight="500" | ||
color={theme.default.color} | ||
> | ||
Unlock Your Push Profile | ||
</SpanV2> | ||
<SpanV2 | ||
fontSize="15px" | ||
fontWeight="400" | ||
color={theme.default.secondaryColor} | ||
> | ||
You need to decrypt your Push Profile to proceed. Please sign using your wallet to continue. | ||
</SpanV2> | ||
</ItemVV2> | ||
<ButtonV2 | ||
padding="14px 20px" | ||
background="#D53A94" | ||
color="#fff" | ||
borderRadius="16px" | ||
width="100%" | ||
onClick={async () => await handleConnectWallet()} | ||
> | ||
Unlock Profile | ||
</ButtonV2> | ||
</ItemVV2> | ||
</ModalContainer> | ||
</ThemeProvider> | ||
); | ||
}; | ||
|
||
const ModalContainer = styled.div` | ||
display: flex; | ||
flex: 1; | ||
flex-direction: column; | ||
border-radius: 24px; | ||
width: 358px; | ||
min-height: -webkit-fill-available; | ||
background: ${(props) => props.theme.default.bg}; | ||
align-items: flex-start; | ||
overflow: hidden; | ||
`; | ||
|
||
export default UnlockProfile; |
Oops, something went wrong.