Skip to content

Commit

Permalink
refactor: remove isInternalUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
vannyle committed Jun 3, 2022
1 parent c004664 commit f80d786
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import React from 'react';
import Link from '@docusaurus/Link';
import {useBaseUrlUtils} from '@docusaurus/useBaseUrl';
import isInternalUrl from '@docusaurus/isInternalUrl';
import ThemedImage from '@theme/ThemedImage';
import type {Props} from '@theme/Footer/Logo';

Expand All @@ -35,11 +34,6 @@ export default function FooterLogo({logo}: Props): JSX.Element {
let logoLinkProps = {};
if (logo.target) {
logoLinkProps = {target: logo.target};
} else if (!isInternalUrl(logo.href)) {
logoLinkProps = {
rel: 'noopener noreferrer',
target: '_blank',
};
}
return logo.href ? (
<Link href={logo.href} className={styles.footerLogoLink} {...logoLinkProps}>
Expand Down

0 comments on commit f80d786

Please sign in to comment.