From b1b8c4a39590e599fd8cd8d327494ba2646e11b6 Mon Sep 17 00:00:00 2001 From: Liliana Sanfilippo <liliana.sanfilippo@uni-bielefeld.de> Date: Wed, 25 Sep 2024 10:08:53 +0200 Subject: [PATCH] drugdata --- src/contents/description.tsx | 4 +-- src/data/drug-data.tsx | 51 +++++++++++++++++++++++++++++++++++- 2 files changed, 52 insertions(+), 3 deletions(-) diff --git a/src/contents/description.tsx b/src/contents/description.tsx index cbd7cabb..fad91693 100644 --- a/src/contents/description.tsx +++ b/src/contents/description.tsx @@ -481,12 +481,12 @@ export function Description() { }, { - node: createDrugSteckbrief(drugdata[0]), + node: createDrugSteckbrief(drugdata[1]), buttonname: "Modulators", cssname: "modulators" }, { - node: createDrugSteckbrief(drugdata[0]), + node: createDrugSteckbrief(drugdata[2]), buttonname: "Inhalations", cssname: "inhalations" }, diff --git a/src/data/drug-data.tsx b/src/data/drug-data.tsx index 4b19cedc..f390e602 100644 --- a/src/data/drug-data.tsx +++ b/src/data/drug-data.tsx @@ -2,11 +2,60 @@ export interface DrugDatensatz { name: string; picture: string; + introduction: string; + examples: Array<example>; + +} + +interface example{ + title: string, + text: string } export const drugdata: (Array<DrugDatensatz>) = [ { name: "About", - picture: "" + picture: "...", + introduction: "", + examples: [ + { + title: "", + text: "string" + }, + { + title: "", + text: "string" + }, + ] }, + { + name: "Modulators", + picture: "...", + introduction: "", + examples: [ + { + title: "", + text: "string" + }, + { + title: "", + text: "string" + }, + ] + }, + { + name: "Modulators", + picture: "...", + introduction: "", + examples: [ + { + title: "", + text: "string" + }, + { + title: "", + text: "string" + }, + ] + } ] \ No newline at end of file -- GitLab