Skip to content

Commit

Permalink
Merge pull request #91 from Eldemarkki/add-missing-key-props
Browse files Browse the repository at this point in the history
fix: add a few missing 'key' props
  • Loading branch information
Esinko authored Mar 21, 2023
2 parents 081824e + 034d031 commit 485501d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/Breadcrumbs/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ export function Breadcrumbs({ route }: BreadcrumbsProps) {
return (
<ul className={styles.breadcrumbs}>
{route.map(breadcrumb => (
<Link href={breadcrumb.path}>
<Link href={breadcrumb.path} key={breadcrumb.name + "." + breadcrumb.path}>
<li key={breadcrumb.name}>{breadcrumb.name}</li>
</Link>
))}
</ul>
)
}
}
2 changes: 1 addition & 1 deletion pages/projects/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export default function ProjectPage({ projectData: project, mdxSerialized, sugge
<div style={{ marginTop: "2rem" }}>
{Object.keys(mdxSerialized.readmes).length > 0 ?
Object.keys(mdxSerialized.readmes).map(repository => (
<RepositoryReadme>
<RepositoryReadme key={repository}>
<span>
<span>
README.md-dokumentaatio GitHub-repositoriolle
Expand Down

1 comment on commit 485501d

@vercel
Copy link

@vercel vercel bot commented on 485501d Mar 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.