-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
50 changed files
with
275 additions
and
740 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
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
Binary file not shown.
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
19 changes: 19 additions & 0 deletions
19
src/features/wallet/components/ConnectionModal/CheckSign/SignInitialized.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,19 @@ | ||
import React from 'react'; | ||
|
||
import { Box, Progress, VStack } from '@chakra-ui/react'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
import { AlertMessage } from '@/features/ui/components/AlertMessage/AlertMessage'; | ||
|
||
export const SignInitialized: React.FC = () => { | ||
const { t } = useTranslation('FeatureWallet'); | ||
return ( | ||
<AlertMessage status="info" title={t('Preparing Sign Request')}> | ||
<VStack> | ||
<Box w="full"> | ||
<Progress isIndeterminate color="blue.400" size={'lg'} /> | ||
</Box> | ||
</VStack> | ||
</AlertMessage> | ||
); | ||
}; |
81 changes: 81 additions & 0 deletions
81
src/features/wallet/components/ConnectionModal/CheckSign/WhySignNeeded.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,81 @@ | ||
import { | ||
Box, | ||
Button, | ||
Heading, | ||
Link, | ||
Modal, | ||
ModalBody, | ||
ModalCloseButton, | ||
ModalContent, | ||
ModalHeader, | ||
ModalOverlay, | ||
VStack, | ||
useDisclosure, | ||
} from '@chakra-ui/react'; | ||
import { FiExternalLink } from 'react-icons/fi'; | ||
|
||
export const WhySignNeeded: React.FC = () => { | ||
const { isOpen, onOpen, onClose } = useDisclosure(); | ||
|
||
return ( | ||
<> | ||
<Button | ||
size="xs" | ||
colorScheme="yellow" | ||
onClick={onOpen} | ||
fontWeight={'normal'} | ||
> | ||
Why On Earth I'd Sign With My Wallet? Is it safe? | ||
</Button> | ||
|
||
<Modal isOpen={isOpen} onClose={onClose}> | ||
<ModalOverlay /> | ||
<ModalContent> | ||
<ModalHeader>Why Sign Needed? Is it Safe?</ModalHeader> | ||
<ModalCloseButton /> | ||
<ModalBody> | ||
<VStack> | ||
<Heading fontSize="sm" fontWeight={'normal'}> | ||
🔐 Why Personal Sign? Ensuring Your Security | ||
</Heading> | ||
<Box> | ||
Connecting your Web3 wallet? You'll encounter a request for | ||
personal sign-in. It's different from eth sign and designed for | ||
your safety. | ||
</Box> | ||
<Heading fontSize="xs" fontWeight={'normal'}> | ||
Personal Sign: Safe and Secure | ||
</Heading> | ||
<Box> | ||
Personal sign verifies your wallet without enabling | ||
transactions—entirely secure, no risk to your funds. We use it | ||
solely to confirm wallet authenticity. | ||
</Box> | ||
<Heading fontSize="xs" fontWeight={'normal'}> | ||
Eth Sign: Beware of Risks | ||
</Heading> | ||
<Box> | ||
Eth sign is risky, allowing external access to drain your | ||
wallet. We don't request it—avoid signing eth requests on | ||
unfamiliar sites to protect your assets. | ||
</Box> | ||
<Box> | ||
<Button | ||
as={Link} | ||
href="https://docs.metamask.io/wallet/how-to/sign-data/#use-personal_sign" | ||
isExternal | ||
variant="ghost" | ||
size="xs" | ||
rightIcon={<FiExternalLink />} | ||
fontWeight={'normal'} | ||
> | ||
More Info | ||
</Button> | ||
</Box> | ||
</VStack> | ||
</ModalBody> | ||
</ModalContent> | ||
</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
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
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.