Skip to content

Commit 526e8f7

Browse files
committed
change to NavLink
1 parent dcb5719 commit 526e8f7

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

apps/site/components/withLegal.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import NavItem from '@node-core/ui-components/Containers/NavBar/NavItem';
12
import { useTranslations } from 'next-intl';
23

34
import Link from '#site/components/Link';
@@ -63,11 +64,16 @@ const WithLegal: FC<LegalProps> = ({ footerLinks }) => {
6364
<p>{t.rich('components.containers.footer.legal', richComponents)}</p>
6465

6566
<p>
66-
{footerLinks.map((link, index) => (
67-
<span key={link.link}>
68-
<Link href={link.link}>{link.translation}</Link>
69-
{index < footerLinks.length - 1 && ' | '}
70-
</span>
67+
{footerLinks.map(link => (
68+
<NavItem
69+
key={link.link}
70+
type="footer"
71+
href={link.link}
72+
as={Link}
73+
pathname={'/'}
74+
>
75+
{link.translation}
76+
</NavItem>
7177
))}
7278
</p>
7379
</>

0 commit comments

Comments
 (0)