Skip to content

Commit

Permalink
Safer keys
Browse files Browse the repository at this point in the history
  • Loading branch information
rbourdon committed Aug 3, 2023
1 parent 9aaf69e commit 5ecfb81
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/Projects/ProjectInfoPanel/SkillList.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function SkillList({ skills, bubbleColor, textColor }) {
return (
<SkillBubble
title={skill.title}
key={skill.slug}
key={`${skill.slug}_skilllist`}
custom={index}
hoverColor={{
bg: bubbleColor,
Expand Down
2 changes: 1 addition & 1 deletion components/Projects/ProjectPost/PostPano.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function PostPano({ src, children }) {
<AnimatePresence>
{!isReady && (
<PlaceholderImage
key={`${src}_placeholder`}
key={`${src}_placeholder_pano`}
initial="hidden"
animate="visible"
exit="exit"
Expand Down
2 changes: 1 addition & 1 deletion components/Projects/ProjectPost/PostVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default function PostVideo({
<AnimatePresence>
{!playing && (
<PlaceholderImage
key={`${src}_placeholder`}
key={`${src}_placeholder_video`}
initial="hidden"
animate="visible"
exit="exit"
Expand Down
2 changes: 1 addition & 1 deletion components/Skills/SkillScroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default function SkillScroller({ skills }) {
return (
<SkillBubble
title={skill.title}
key={skill.slug}
key={`${skill.slug}_scroller`}
variants={bubbleV}
custom={index}
bgColor={theme.primary}
Expand Down
2 changes: 1 addition & 1 deletion components/Skills/SkillsCard/SkillRoller.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function SkillRoller({
<SkillBubble
title={skill.title}
id={skill.slug}
key={skill.slug}
key={`${skill.slug}_roller`}
top={index === 0 ? true : false}
bottom={index === numSkills - 1 ? true : false}
hoverColor={{
Expand Down

0 comments on commit 5ecfb81

Please sign in to comment.