Browse Source

Merge pull request #689 from raunofreiberg/fix/footer-keys-warning

fix: Footer keys warning
main
Alex Krolick 7 years ago
committed by GitHub
parent
commit
da8a7df204
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/components/LayoutFooter/Footer.js

8
src/components/LayoutFooter/Footer.js

@ -64,7 +64,9 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
{sectionListDocs.map(section => {
const defaultItem = section.items[0];
return (
<FooterLink to={`/docs/${defaultItem.id}.html`}>
<FooterLink
to={`/docs/${defaultItem.id}.html`}
key={section.title}>
{section.title}
</FooterLink>
);
@ -112,7 +114,9 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
<FooterNav layoutHasSidebar={layoutHasSidebar}>
<MetaTitle onDark={true}>Community</MetaTitle>
{sectionListCommunity.map(section => (
<FooterLink to={`/community/${section.items[0].id}.html`}>
<FooterLink
to={`/community/${section.items[0].id}.html`}
key={section.title}>
{section.title}
</FooterLink>
))}

Loading…
Cancel
Save