mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
fix: add key to mapped items
This commit is contained in:
@@ -74,7 +74,7 @@ export function ResourceHeader({
|
||||
<SC.RecommendedReading>
|
||||
Recommended reading
|
||||
{recommendedReading.map(item => {
|
||||
return <ExtraLink item={item} />
|
||||
return <ExtraLink key={item} item={item} />
|
||||
})}
|
||||
</SC.RecommendedReading>
|
||||
)}
|
||||
@@ -83,7 +83,7 @@ export function ResourceHeader({
|
||||
<SC.ExternalResources>
|
||||
External Resources
|
||||
{externalResources.map(item => {
|
||||
return <ExtraLink item={item} external />
|
||||
return <ExtraLink key={item} item={item} external />
|
||||
})}
|
||||
</SC.ExternalResources>
|
||||
)}
|
||||
|
||||
@@ -10,7 +10,7 @@ export function StackedAvatars({ authors }: StackedAvatarsProps) {
|
||||
return (
|
||||
<SC.StackedAvatarsWrapper count={authors.length}>
|
||||
{authors.map((author, index) => (
|
||||
<SC.AuthorAvatar src={author.avatar} index={index} />
|
||||
<SC.AuthorAvatar key={index} src={author.avatar} index={index} />
|
||||
))}
|
||||
</SC.StackedAvatarsWrapper>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user