diff --git a/ui/src/app/shared/components/deep-links.tsx b/ui/src/app/shared/components/deep-links.tsx index f7881bff537d..6d9f614ea966 100644 --- a/ui/src/app/shared/components/deep-links.tsx +++ b/ui/src/app/shared/components/deep-links.tsx @@ -1,4 +1,5 @@ -import * as React from 'react'; +import React from 'react'; +import {Link} from 'react-router-dom'; import {LinkInfo} from '../models'; export const DeepLinks = (props: {links: LinkInfo[]}) => { @@ -7,10 +8,17 @@ export const DeepLinks = (props: {links: LinkInfo[]}) => {
{(links || []).map((link: LinkInfo) => (
- - -
{link.title}
-
+ {link.url.startsWith('http') ? ( + + +
{link.title}
+
+ ) : ( + + +
{link.title}
+ + )} {link.description && <>({link.description})}
))}