Skip to content

Commit dcb5719

Browse files
committed
fix rendering of legal paragraph
1 parent 6e48d5e commit dcb5719

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

apps/site/components/withFooter.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ const WithFooter: FC = () => {
1919

2020
const navigation = {
2121
socialLinks,
22-
footerLinks: footerLinks.map(link => ({ ...link, text: t(link.text) })),
22+
footerLinks: footerLinks.map(link => ({
23+
...link,
24+
translation: t(link.text),
25+
})),
2326
};
2427

2528
const primary = (

apps/site/components/withLegal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ type LegalProps = {
88
footerLinks: Array<{
99
text: string;
1010
link: string;
11+
translation: string;
1112
}>;
1213
};
1314

@@ -64,7 +65,7 @@ const WithLegal: FC<LegalProps> = ({ footerLinks }) => {
6465
<p>
6566
{footerLinks.map((link, index) => (
6667
<span key={link.link}>
67-
<Link href={link.link}>{link.text}</Link>
68+
<Link href={link.link}>{link.translation}</Link>
6869
{index < footerLinks.length - 1 && ' | '}
6970
</span>
7071
))}

0 commit comments

Comments
 (0)