fix: missing key on list in cv
continuous-integration/drone/push Build is passing Details

pull/2/head
Guus van Meerveld 9 months ago
parent 5493f0c140
commit 35f1c82168

@ -10,6 +10,8 @@ import { Component } from "@typings/component";
import humanizeDuration from "humanize-duration"; import humanizeDuration from "humanize-duration";
import NextImage from "next/image"; import NextImage from "next/image";
import { Fragment } from "react";
import CvProps, { import CvProps, {
Education as EducationProps, Education as EducationProps,
Skill as SkillProps Skill as SkillProps
@ -112,6 +114,7 @@ export const Cv: Component<{ data: CvProps }> = ({ data }) => {
{data.programmingLanguages.map((skill) => ( {data.programmingLanguages.map((skill) => (
<Skill skill={skill} key={skill.name.toLowerCase()} /> <Skill skill={skill} key={skill.name.toLowerCase()} />
))} ))}
<Spacer y={8} /> <Spacer y={8} />
</div> </div>
<Spacer x={8} /> <Spacer x={8} />
@ -120,13 +123,10 @@ export const Cv: Component<{ data: CvProps }> = ({ data }) => {
{data.education.map((education) => { {data.education.map((education) => {
return ( return (
<> <Fragment key={education.title.toLowerCase()}>
<Spacer y={4} /> <Spacer y={4} />
<Education <Education education={education} />
education={education} </Fragment>
key={education.title.toLowerCase()}
/>
</>
); );
})} })}
</div> </div>

Loading…
Cancel
Save