mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
utils: convert ExternalLinkIcon to function
This commit is contained in:
@@ -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">
|
||||
|
||||
<sup>
|
||||
<Icon icon="share" iconSize={12} />
|
||||
</sup>
|
||||
</span>
|
||||
);
|
||||
};
|
||||
|
||||
export default ExternalLinkIcon;
|
||||
|
||||
Reference in New Issue
Block a user