Skip to content

Commit 56616b9

Browse files
committed
chore: named export
1 parent 2c817f8 commit 56616b9

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

components/Navigation/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { useTheme } from '@node-core/doc-kit/src/generators/web/ui/hooks/useThem
88
import { useEffect, useState } from 'preact/hooks';
99
import { useIntl } from 'react-intl';
1010

11-
import localizeLink from '../../util/link';
11+
import { localizeLink } from '../../util/link';
1212
import { navigation } from '../../site.json' with { type: 'json' };
1313

1414
import Logo from '#theme/Logo';

util/link.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { defaultLocale } from '../site.json' with { type: 'json' };
77
* @param {string|null} locale - The locale to apply to the link.
88
* @returns {string} - The localized link.
99
*/
10-
const localizeLink = (link, locale) => {
10+
export const localizeLink = (link, locale) => {
1111
if (
1212
typeof document === 'undefined' ||
1313
!link.startsWith('/') ||
@@ -24,5 +24,3 @@ const localizeLink = (link, locale) => {
2424

2525
return localizedLink;
2626
};
27-
28-
export default { localizeLink };

0 commit comments

Comments
 (0)