From ef32c77bca43a3094468b60be9570e81ccf03a59 Mon Sep 17 00:00:00 2001 From: Mati Dastugue Date: Fri, 4 Feb 2022 21:17:37 -0300 Subject: [PATCH] [Explorer] Make internal links open in the same tab - external links in another one (#1029) # Summary Closes #1020 Added `_self` to internal links to open same tab. Added `_blank` to external links to open another tab. # To Test 1. Open a page with links. i.e : `address/0xb6bad41ae76a11d10f7b0e664c5007b908bc77c9` * Click on a Token link or address next to the `User Details` title. Those links will be opened in another tab. * Click on an order link in the table. Those links will be opened in the same tab. --- src/components/orders/OrdersUserDetailsTable/index.tsx | 2 +- src/components/transaction/TransactionTable/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/orders/OrdersUserDetailsTable/index.tsx b/src/components/orders/OrdersUserDetailsTable/index.tsx index 93fe04d5c..01b0608fe 100644 --- a/src/components/orders/OrdersUserDetailsTable/index.tsx +++ b/src/components/orders/OrdersUserDetailsTable/index.tsx @@ -169,7 +169,7 @@ const RowOrder: React.FC = ({ order, isPriceInverted }) => { className="span-copybtn-wrap" textToCopy={uid} contentsToDisplay={ - + {shortId} } diff --git a/src/components/transaction/TransactionTable/index.tsx b/src/components/transaction/TransactionTable/index.tsx index 34353e4e7..e5d86c473 100644 --- a/src/components/transaction/TransactionTable/index.tsx +++ b/src/components/transaction/TransactionTable/index.tsx @@ -171,7 +171,7 @@ const RowTransaction: React.FC = ({ order, isPriceInverted, invertLimi className="span-copybtn-wrap" textToCopy={uid} contentsToDisplay={ - + {getShortOrderId(shortId)} }