Skip to content

Commit

Permalink
add keys
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianhajdin committed May 31, 2021
1 parent a3b0586 commit 499071b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/components/Projects/Projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const Projects = () => (
<SectionDivider />
<SectionTitle main>Projects</SectionTitle>
<GridContainer>
{projects.map((p) => {
{projects.map((p, i) => {
return (
<BlogCard>
<BlogCard key={i}>
<div>
<Image src={p.image} width="500" height="400" />
</div>
Expand All @@ -24,8 +24,8 @@ const Projects = () => (
<div>
<TitleContent>Stack</TitleContent>
<TagList>
{p.tags.map((t) => {
return <Tag>{t}</Tag>;
{p.tags.map((t, i) => {
return <Tag key={i}>{t}</Tag>;
})}
</TagList>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/TimeLine/TimeLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ const Timeline = () => {
<>
{TimeLineData.map((item, index) => (
<CarouselMobileScrollNode
key={index}
final={index === TOTAL_CAROUSEL_COUNT - 1}>
<CarouselItem
key={index}
index={index}
id={`carousel__item-${index}`}
active={activeItem}
Expand Down

0 comments on commit 499071b

Please sign in to comment.