From c7ea4c2403cfd80fc08fe3aeb2532d41dc38326d Mon Sep 17 00:00:00 2001 From: Douglas Daniel Date: Tue, 14 Dec 2021 15:42:52 -0700 Subject: [PATCH] Disabled Site Permissions for brave://wallet Route --- .../components/extension/connected-panel/style.ts | 5 ++++- components/brave_wallet_ui/constants/types.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/brave_wallet_ui/components/extension/connected-panel/style.ts b/components/brave_wallet_ui/components/extension/connected-panel/style.ts index c31ed36a3f7a..c8aae72cc4b5 100644 --- a/components/brave_wallet_ui/components/extension/connected-panel/style.ts +++ b/components/brave_wallet_ui/components/extension/connected-panel/style.ts @@ -109,7 +109,7 @@ export const CaratDownIcon = styled(CaratCircleODownIcon)` ` export const OvalButton = styled(WalletButton)` - display: flex;; + display: flex; align-items: center; justify-content: center; cursor: pointer; @@ -120,6 +120,9 @@ export const OvalButton = styled(WalletButton)` border: 1px solid rgba(255,255,255,0.5); fontSize: 14px; color: ${(p) => p.theme.palette.white}; + &:disabled { + cursor: default; + } ` export const OvalButtonText = styled.span` diff --git a/components/brave_wallet_ui/constants/types.ts b/components/brave_wallet_ui/constants/types.ts index 67e80484dba6..26fe5ee937fc 100644 --- a/components/brave_wallet_ui/constants/types.ts +++ b/components/brave_wallet_ui/constants/types.ts @@ -518,4 +518,4 @@ export enum WalletRoutes { CryptoPage = '/crypto/:category/:id?' } -export const WalletOrigin = 'chrome://wallet/' +export const WalletOrigin = 'chrome://wallet'