-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add report button to dapp request modal
- Loading branch information
1 parent
dcada1f
commit 775a87e
Showing
3 changed files
with
46 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ import { | |
FormErrorMessage, | ||
Heading, | ||
Image, | ||
Link, | ||
ModalBody, | ||
ModalCloseButton, | ||
ModalContent, | ||
|
@@ -77,15 +78,6 @@ export const PermissionRequestModal = ({ request }: { request: PermissionRequest | |
<Text marginTop="10px" color={colors.gray[400]} textAlign="center" size="sm"> | ||
{request.appMetadata.name} is requesting permission to sign this operation. | ||
</Text> | ||
|
||
<Flex alignItems="center" justifyContent="center" marginTop="10px"> | ||
<Heading marginRight="4px" color={colors.gray[450]} size="sm"> | ||
Network: | ||
</Heading> | ||
<Text color={colors.gray[400]} size="sm"> | ||
{capitalize(request.network.type)} | ||
</Text> | ||
</Flex> | ||
</ModalHeader> | ||
<ModalCloseButton /> | ||
<ModalBody data-testid="beacon-request-body"> | ||
|
@@ -102,6 +94,26 @@ export const PermissionRequestModal = ({ request }: { request: PermissionRequest | |
<Heading size="sm">{request.appMetadata.name}</Heading> | ||
</Flex> | ||
|
||
<Flex alignItems="center" justifyContent="space-between" marginTop="12px"> | ||
<Flex alignItems="center" gap="4px"> | ||
<Text size="xs">Suspicious DApp? </Text> | ||
<Link | ||
fontSize="12px" | ||
textDecoration="underline" | ||
href="mailto:[email protected]" | ||
isExternal | ||
> | ||
Report | ||
</Link> | ||
</Flex> | ||
<Flex alignItems="center" justifyContent="center"> | ||
<Heading marginRight="4px" color={colors.gray[450]} size="md"> | ||
Network: | ||
</Heading> | ||
<Text color={colors.gray[400]}>{capitalize(request.network.type)}</Text> | ||
</Flex> | ||
</Flex> | ||
|
||
<Accordion marginTop="16px" allowToggle={true}> | ||
<AccordionItem background={colors.gray[800]} border="none" borderRadius="8px"> | ||
<AccordionButton> | ||
|
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ import { | |
FormErrorMessage, | ||
Heading, | ||
Image, | ||
Link, | ||
ModalBody, | ||
ModalContent, | ||
ModalFooter, | ||
|
@@ -79,15 +80,6 @@ export const PermissionRequestModal = ({ request }: { request: PermissionRequest | |
<Text marginTop="10px" color={color("700")} textAlign="center" size="sm"> | ||
{request.appMetadata.name} is requesting permission to sign this operation. | ||
</Text> | ||
|
||
<Flex alignItems="center" justifyContent="center" marginTop="10px"> | ||
<Heading marginRight="4px" color={color("700")} size="sm"> | ||
Network: | ||
</Heading> | ||
<Text color={color("700")} fontWeight="400" size="sm"> | ||
{capitalize(request.network.type)} | ||
</Text> | ||
</Flex> | ||
</ModalHeader> | ||
<ModalCloseButton /> | ||
<ModalBody data-testid="beacon-request-body"> | ||
|
@@ -109,6 +101,28 @@ export const PermissionRequestModal = ({ request }: { request: PermissionRequest | |
<Heading size="sm">{request.appMetadata.name}</Heading> | ||
</Flex> | ||
|
||
<Flex alignItems="center" justifyContent="space-between" marginTop="12px"> | ||
<Flex alignItems="center" gap="4px"> | ||
<Text size="sm">Suspicious DApp? </Text> | ||
<Link | ||
fontSize="14px" | ||
textDecoration="underline" | ||
href="mailto:[email protected]" | ||
isExternal | ||
> | ||
Report | ||
</Link> | ||
</Flex> | ||
<Flex alignItems="center" justifyContent="center"> | ||
<Heading marginRight="4px" color={color("700")} size="md"> | ||
Network: | ||
</Heading> | ||
<Text color={color("700")} fontWeight="400"> | ||
{capitalize(request.network.type)} | ||
</Text> | ||
</Flex> | ||
</Flex> | ||
|
||
<Accordion marginTop="16px" allowToggle={true}> | ||
<AccordionItem background={color("100")} border="none" borderRadius="8px"> | ||
<AccordionButton borderRadius="full"> | ||
|
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
775a87e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.