From 775a87e2f3096da8dbe1f3689ba7e9e5df747b67 Mon Sep 17 00:00:00 2001 From: Oleg Chendighelean Date: Thu, 3 Oct 2024 17:52:16 +0100 Subject: [PATCH] Add report button to dapp request modal --- .../utils/beacon/PermissionRequestModal.tsx | 30 +++++++++++------ .../beacon/PermissionRequestModal.tsx | 32 +++++++++++++------ apps/web/src/styles/theme.ts | 3 +- 3 files changed, 46 insertions(+), 19 deletions(-) diff --git a/apps/desktop/src/utils/beacon/PermissionRequestModal.tsx b/apps/desktop/src/utils/beacon/PermissionRequestModal.tsx index 8735e66f68..ea75d6f4c4 100644 --- a/apps/desktop/src/utils/beacon/PermissionRequestModal.tsx +++ b/apps/desktop/src/utils/beacon/PermissionRequestModal.tsx @@ -16,6 +16,7 @@ import { FormErrorMessage, Heading, Image, + Link, ModalBody, ModalCloseButton, ModalContent, @@ -77,15 +78,6 @@ export const PermissionRequestModal = ({ request }: { request: PermissionRequest {request.appMetadata.name} is requesting permission to sign this operation. - - - - Network: - - - {capitalize(request.network.type)} - - @@ -102,6 +94,26 @@ export const PermissionRequestModal = ({ request }: { request: PermissionRequest {request.appMetadata.name} + + + Suspicious DApp? + + Report + + + + + Network: + + {capitalize(request.network.type)} + + + diff --git a/apps/web/src/components/beacon/PermissionRequestModal.tsx b/apps/web/src/components/beacon/PermissionRequestModal.tsx index 90f1e6fc25..f1e6e3facd 100644 --- a/apps/web/src/components/beacon/PermissionRequestModal.tsx +++ b/apps/web/src/components/beacon/PermissionRequestModal.tsx @@ -16,6 +16,7 @@ import { FormErrorMessage, Heading, Image, + Link, ModalBody, ModalContent, ModalFooter, @@ -79,15 +80,6 @@ export const PermissionRequestModal = ({ request }: { request: PermissionRequest {request.appMetadata.name} is requesting permission to sign this operation. - - - - Network: - - - {capitalize(request.network.type)} - - @@ -109,6 +101,28 @@ export const PermissionRequestModal = ({ request }: { request: PermissionRequest {request.appMetadata.name} + + + Suspicious DApp? + + Report + + + + + Network: + + + {capitalize(request.network.type)} + + + + diff --git a/apps/web/src/styles/theme.ts b/apps/web/src/styles/theme.ts index bd5a666673..b860568a0a 100644 --- a/apps/web/src/styles/theme.ts +++ b/apps/web/src/styles/theme.ts @@ -293,7 +293,8 @@ const theme = extendTheme({ }, Link: { baseStyle: { - color: "gray.500", + color: "gray.600", + textUnderlineOffset: "2px", }, variants: { dropdownOption: {