File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff 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 = (
Original file line number Diff line number Diff 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 ) ) }
You can’t perform that action at this time.
0 commit comments