Skip to content

Commit d104569

Browse files
authored
Update index.tsx
1 parent 84fb6de commit d104569

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Lesson/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const Lesson: React.FC<LessonProps> = ({ title, tags, description }) => {
2121
<h2 className="lesson-title">{title}</h2> {/* Title of the lesson */}
2222
<p className="lesson-description">{description}</p> {/* Description or content of the lesson */}
2323
<div className="lesson-tags"> {/* Container for tags */}
24-
{tags.map((tag, index) => (
25-
<span key={`${tag}-${index}`} className="lesson-tag">{tag}</span>
24+
{tags.map((tag) => (
25+
<span key={tag} className="lesson-tag">{tag}</span>
2626
))
2727
}
2828
</div>

0 commit comments

Comments
 (0)