We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcb5719 commit 526e8f7Copy full SHA for 526e8f7
apps/site/components/withLegal.tsx
@@ -1,3 +1,4 @@
1
+import NavItem from '@node-core/ui-components/Containers/NavBar/NavItem';
2
import { useTranslations } from 'next-intl';
3
4
import Link from '#site/components/Link';
@@ -63,11 +64,16 @@ const WithLegal: FC<LegalProps> = ({ footerLinks }) => {
63
64
<p>{t.rich('components.containers.footer.legal', richComponents)}</p>
65
66
<p>
- {footerLinks.map((link, index) => (
67
- <span key={link.link}>
68
- <Link href={link.link}>{link.translation}</Link>
69
- {index < footerLinks.length - 1 && ' | '}
70
- </span>
+ {footerLinks.map(link => (
+ <NavItem
+ key={link.link}
+ type="footer"
71
+ href={link.link}
72
+ as={Link}
73
+ pathname={'/'}
74
+ >
75
+ {link.translation}
76
+ </NavItem>
77
))}
78
</p>
79
</>
0 commit comments