diff --git a/src/contents/description.tsx b/src/contents/description.tsx index ce7d4a7b3a421f956591732e580eb3f091fee367..bf733d5ab1fada192d0a42ab6c03192e1ad386f6 100644 --- a/src/contents/description.tsx +++ b/src/contents/description.tsx @@ -613,12 +613,11 @@ let symptombuttonrowdata = [ function createSymptomSteckbrief(data: SymptomDatensatz){ - let examplelist = []; + let examplelist: JSX.Element[] = []; for (let index = 0; index < data.introduction.length; index++) { examplelist.push( - <li>{data.introduction[index]}</li> + <li key={index}>{data.introduction[index]}</li> ) - } return( <div> @@ -641,19 +640,19 @@ function createSymptomSteckbrief(data: SymptomDatensatz){ function createDrugSteckbrief(data: DrugDatensatz){ - let examplelist = []; + let examplelist: JSX.Element[] = []; for (let index = 0; index < data.examples.length; index++) { - let absaetze = [] + let absaetze: JSX.Element[] = [] for (let i = 0; i < data.examples[index].text.length; i++) { absaetze.push( - <li>{data.examples[index].text[i]}</li> + <li key={i}>{data.examples[index].text[i]}</li> ) } examplelist.push( <div className="drug"> <H4 text={data.examples[index].title}/> - <ul>{absaetze}</ul> + <ul key={index}>{absaetze}</ul> </div> ) diff --git a/src/data/symptom-data.tsx b/src/data/symptom-data.tsx index 5624a06c2d20626c0f29fc2e80697448a95f046e..9a4014c3eabb459f981c08bd7782245b6bb8ba62 100644 --- a/src/data/symptom-data.tsx +++ b/src/data/symptom-data.tsx @@ -53,19 +53,4 @@ export const symptomdata: (Array<SymptomDatensatz>) = [ picture: "https://static.igem.wiki/teams/5247/scientific-figures/brain.svg", introduction: [<>Located inside the skull</>,<>Responsible for cognitive functions, movement coordination, and control of vital functions [29]</>,<>CF affects mental health due to psychological stress and social isolation [30]</>,<>This can lead in context of CF to physical illnesses like depression and anxiety disorders [30]</>,<>Treatment options include psychotherapy, antidepressants, support groups and sports [31]</>] } -// -// name: "guts", -// picture: "https://static.igem.wiki/teams/5247/scientific-figures/pregnancy.svg", -// introduction: "", -// subsections: [ -// { -// title: "", -// text: ["string"] -// }, -// { -// title: "", -// text: ["string"] -// }, -// ] -// } ] \ No newline at end of file