From 985cfa2ef04eedc238bcbd9a274d6b2945677533 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nguy=E1=BB=85n=20Ho=C3=A0i=20Danh?=
<33005392+nguyenhoaidanh@users.noreply.github.com>
Date: Mon, 16 Oct 2023 13:53:32 +0700
Subject: [PATCH] fix: allow external link with url: /pathname (#2299)
---
.../Header/web3/WalletModal/index.tsx | 9 ++---
src/components/Menu/index.tsx | 8 ++---
src/pages/KyberDAO/KNCUtility/index.tsx | 13 +++----
src/pages/SwapV3/Tabs/LimitTab.tsx | 35 ++++++++++---------
src/theme/components.tsx | 20 ++++++++---
src/utils/redirect.ts | 20 ++++++-----
6 files changed, 62 insertions(+), 43 deletions(-)
diff --git a/src/components/Header/web3/WalletModal/index.tsx b/src/components/Header/web3/WalletModal/index.tsx
index 67e7834b65..0986a50436 100644
--- a/src/components/Header/web3/WalletModal/index.tsx
+++ b/src/components/Header/web3/WalletModal/index.tsx
@@ -32,6 +32,7 @@ import {
useWalletModalToggle,
} from 'state/application/hooks'
import { useIsConnectingWallet } from 'state/authen/hooks'
+import { ExternalLink } from 'theme'
import { isEVMWallet, isOverriddenWallet, isSolanaWallet } from 'utils'
import Option from './Option'
@@ -316,13 +317,13 @@ export default function WalletModal() {
By connecting a wallet, you accept{' '}
- e.stopPropagation()}>
+ e.stopPropagation()}>
KyberSwap‘s Terms of Use
- {' '}
+ {' '}
and consent to its{' '}
- e.stopPropagation()}>
+ e.stopPropagation()}>
Privacy Policy
-
+
. Last updated: {dayjs(TERM_FILES_PATH.VERSION).format('DD MMM YYYY')}
diff --git a/src/components/Menu/index.tsx b/src/components/Menu/index.tsx
index 87115a075a..44796e4579 100644
--- a/src/components/Menu/index.tsx
+++ b/src/components/Menu/index.tsx
@@ -473,7 +473,7 @@ export default function Menu() {
)}