utils: convert ExternalLinkIcon to function

This commit is contained in:
David Lechner
2021-12-27 12:38:50 -06:00
parent 534d3f80e6
commit db7f3be222
+10 -12
View File
@@ -8,17 +8,15 @@ import React from 'react';
import './external-link.scss';
class ExternalLinkIcon extends React.Component {
render(): JSX.Element {
return (
<span className="pb-external-link">
{' '}
<sup>
<Icon icon="share" iconSize={12} />
</sup>
</span>
);
}
}
const ExternalLinkIcon: React.VFC = (_props) => {
return (
<span className="pb-external-link">
&nbsp;
<sup>
<Icon icon="share" iconSize={12} />
</sup>
</span>
);
};
export default ExternalLinkIcon;