We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b3c1e4 commit 2992357Copy full SHA for 2992357
src/components/link_or_span/link_or_span.tsx
@@ -1,12 +1,13 @@
1
import React from 'react';
2
+import { ExternalLinkAltIcon } from '@patternfly/react-icons';
3
4
export interface LinkOrSpanProps {
5
href?: string;
6
children: any;
7
}
8
export const LinkOrSpan = ({ href, children }: LinkOrSpanProps) => {
9
if (!!href) {
- return <a href={href} target="_blank" rel="noreferrer">{children}</a>;
10
+ return <a href={href} target="_blank" rel="noreferrer">{children} <ExternalLinkAltIcon /></a>;
11
} else {
12
return <span>{children}</span>;
13
0 commit comments