Skip to content

Commit 3163c18

Browse files
committed
fix: Footer keys warning
1 parent 7ff3c4e commit 3163c18

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: src/components/LayoutFooter/Footer.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
6464
{sectionListDocs.map(section => {
6565
const defaultItem = section.items[0];
6666
return (
67-
<FooterLink to={`/docs/${defaultItem.id}.html`}>
67+
<FooterLink
68+
to={`/docs/${defaultItem.id}.html`}
69+
key={section.title}>
6870
{section.title}
6971
</FooterLink>
7072
);
@@ -112,7 +114,9 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
112114
<FooterNav layoutHasSidebar={layoutHasSidebar}>
113115
<MetaTitle onDark={true}>Community</MetaTitle>
114116
{sectionListCommunity.map(section => (
115-
<FooterLink to={`/community/${section.items[0].id}.html`}>
117+
<FooterLink
118+
to={`/community/${section.items[0].id}.html`}
119+
key={section.title}>
116120
{section.title}
117121
</FooterLink>
118122
))}

0 commit comments

Comments
 (0)