mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 01:05:58 +02:00
refact: add missing keys on mapped JSX
This commit is contained in:
@@ -69,14 +69,14 @@ export function ResourceBreadcrumb({ relativePath }: IResourceBreadcrumbProps) {
|
|||||||
{breadcrumbItems.map(item => {
|
{breadcrumbItems.map(item => {
|
||||||
if (item.type === "folder") {
|
if (item.type === "folder") {
|
||||||
return (
|
return (
|
||||||
<SC.LinkWrapper>
|
<SC.LinkWrapper key={item.path}>
|
||||||
<Link item={item} />
|
<Link item={item} />
|
||||||
<ChevronUp />
|
<ChevronUp />
|
||||||
</SC.LinkWrapper>
|
</SC.LinkWrapper>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return <SC.CurrentPage>{item.title}</SC.CurrentPage>
|
return <SC.CurrentPage key={item.path}>{item.title}</SC.CurrentPage>
|
||||||
})}
|
})}
|
||||||
</SC.ResourceBreadcrumbWrapper>
|
</SC.ResourceBreadcrumbWrapper>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user