From fbd429b4e61d09be9bb1013645889f8f6bc9e641 Mon Sep 17 00:00:00 2001
From: cjenkscybercom <christina.jenks@knowit.se>
Date: Mon, 6 Nov 2023 10:56:31 +0100
Subject: [PATCH] CE-2227: add naming service external link

---
 src/components/IOC/IOCManage/IOCManage.js | 24 +++++++----------------
 1 file changed, 7 insertions(+), 17 deletions(-)

diff --git a/src/components/IOC/IOCManage/IOCManage.js b/src/components/IOC/IOCManage/IOCManage.js
index 0b3100b0..49f535e8 100644
--- a/src/components/IOC/IOCManage/IOCManage.js
+++ b/src/components/IOC/IOCManage/IOCManage.js
@@ -1,10 +1,4 @@
-import {
-  Button,
-  Link as MuiLink,
-  Stack,
-  Tooltip,
-  Typography
-} from "@mui/material";
+import { Button, Stack, Tooltip, Typography } from "@mui/material";
 import React, {
   useState,
   useEffect,
@@ -85,16 +79,12 @@ export function IOCManage({
 
       let subset = {
         "Naming service record": (
-          <Typography>
-            <MuiLink
-              href={`${window.NAMING_ADDRESS}/devices.xhtml?i=2&deviceName=${ioc.namingName}`}
-              target="_blank"
-              rel="noreferrer"
-              underline="hover"
-            >
-              {ioc.namingName}
-            </MuiLink>
-          </Typography>
+          <ExternalLink
+            href={`${window.NAMING_ADDRESS}/devices.xhtml?i=2&deviceName=${ioc.namingName}`}
+            aria-label="Naming Service Record, External Link"
+          >
+            <ExternalLinkContents>{ioc.namingName}</ExternalLinkContents>
+          </ExternalLink>
         ),
         Repository: (
           <ExternalLink
-- 
GitLab