Skip to content

Commit 195dbfb

Browse files
authored
fix: use html links when needed (nodejs#6103)
1 parent 3fbcac7 commit 195dbfb

File tree

18 files changed

+50
-17
lines changed

18 files changed

+50
-17
lines changed

components/Common/ActiveLocalizedLink/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import classNames from 'classnames';
44
import type { ComponentProps, FC } from 'react';
55

6-
import { Link, usePathname } from '@/navigation.mjs';
6+
import Link from '@/components/Link';
7+
import { usePathname } from '@/navigation.mjs';
78

89
type ActiveLocalizedLinkProps = ComponentProps<typeof Link> & {
910
activeClassName: string;

components/Common/Badge/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ArrowRightIcon from '@heroicons/react/24/solid/ArrowRightIcon';
22
import type { ComponentProps, FC, PropsWithChildren } from 'react';
33

4-
import { Link } from '@/navigation.mjs';
4+
import Link from '@/components/Link';
55

66
import styles from './index.module.css';
77

components/Common/Banner/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ArrowUpRightIcon } from '@heroicons/react/24/outline';
22
import type { FC } from 'react';
33

4-
import { Link } from '@/navigation.mjs';
4+
import Link from '@/components/Link';
55

66
import styles from './index.module.css';
77

components/Common/Breadcrumbs/BreadcrumbLink/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import classNames from 'classnames';
22
import type { ComponentProps, FC } from 'react';
33

4-
import { Link } from '@/navigation.mjs';
4+
import Link from '@/components/Link';
55

66
import styles from './index.module.css';
77

components/Common/CrossLink/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useTranslations } from 'next-intl';
33
import type { FC } from 'react';
44

55
import PrevNextArrow from '@/components/Common/PrevNextArrow';
6-
import { Link } from '@/navigation.mjs';
6+
import Link from '@/components/Link';
77

88
import styles from './index.module.css';
99

components/Common/MetaBar/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Image from 'next/image';
44

55
import AvatarGroup from '@/components/Common/AvatarGroup';
66
import MetaBar from '@/components/Common/MetaBar';
7-
import { Link } from '@/navigation.mjs';
7+
import Link from '@/components/Link';
88

99
type Story = StoryObj<typeof MetaBar>;
1010
type Meta = MetaObj<typeof MetaBar>;

components/Common/MetaBar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useTranslations } from 'next-intl';
33
import { Fragment, useMemo } from 'react';
44
import type { FC } from 'react';
55

6-
import { Link } from '@/navigation.mjs';
6+
import Link from '@/components/Link';
77

88
import styles from './index.module.css';
99

components/Common/Pagination/PaginationListItem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useTranslations } from 'next-intl';
22
import type { FC } from 'react';
33

4-
import { Link } from '@/navigation.mjs';
4+
import Link from '@/components/Link';
55

66
import styles from './index.module.css';
77

components/Downloads/DownloadList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { useTranslations } from 'next-intl';
22
import type { FC } from 'react';
33

4+
import Link from '@/components/Link';
45
import { useSiteNavigation } from '@/hooks/server';
5-
import { Link } from '@/navigation.mjs';
66
import type { NodeRelease } from '@/types';
77

88
const DownloadList: FC<NodeRelease> = ({ versionWithPrefix }) => {

components/Downloads/PrimaryDownloadMatrix.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import classNames from 'classnames';
44
import type { FC } from 'react';
55
import semVer from 'semver';
66

7+
import Link from '@/components/Link';
78
import { WithCurrentOS } from '@/components/withCurrentOS';
89
import { useClientContext } from '@/hooks';
9-
import { Link } from '@/navigation.mjs';
1010
import { DIST_URL } from '@/next.constants.mjs';
1111
import type { NodeRelease } from '@/types';
1212

0 commit comments

Comments
 (0)