Skip to content

Commit 6ec81de

Browse files
committed
fixup! fixup! feat(ui): add ui-components package
1 parent 6365d7e commit 6ec81de

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

apps/site/components/withProgressionSidebar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { usePathname } from 'next/navigation';
55
import { useTranslations, type RichTranslationValues } from 'next-intl';
66
import type { FC } from 'react';
77

8+
import Link from '@/components/Link';
89
import { useSiteNavigation } from '@/hooks/server';
910
import { useRouter } from '@/navigation.mjs';
1011
import type { NavigationKeys } from '@/types';
@@ -37,6 +38,7 @@ const WithProgressionSidebar: FC<WithProgressionSidebarProps> = ({
3738
pathname={pathname!}
3839
title={t('components.common.sidebar.title')}
3940
onSelect={push}
41+
as={Link}
4042
/>
4143
);
4244
};

apps/site/components/withSidebar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { usePathname } from 'next/navigation';
55
import { useTranslations, type RichTranslationValues } from 'next-intl';
66
import type { FC } from 'react';
77

8+
import Link from '@/components/Link';
89
import { useSiteNavigation } from '@/hooks/server';
910
import { useRouter } from '@/navigation.mjs';
1011
import type { NavigationKeys } from '@/types';
@@ -33,6 +34,7 @@ const WithSidebar: FC<WithSidebarProps> = ({ navKeys, context }) => {
3334
pathname={pathname}
3435
title={t('components.common.sidebar.title')}
3536
onSelect={value => push(value)}
37+
as={Link}
3638
/>
3739
);
3840
};

0 commit comments

Comments
 (0)