Skip to content

Commit

Permalink
fix: add a few missing 'key' props
Browse files Browse the repository at this point in the history
  • Loading branch information
Eldemarkki committed Mar 14, 2023
1 parent 081824e commit 034d031
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

0 comments on commit 034d031

Please sign in to comment.