diff --git a/src/components/Tabs.tsx b/src/components/Tabs.tsx index 2d65c70f6439acb2c4de79f3e6c4e275a874d1be..9a3c9fc73cee5776c8610a6398b8cb9741d6c0d9 100644 --- a/src/components/Tabs.tsx +++ b/src/components/Tabs.tsx @@ -32,6 +32,15 @@ import { BlockQuoteB } from "./Quotes"; problem_desc.push("interview language"); } + /* Aim/Goal */ + var goalheading: string = ""; + if(data[i].type === "meta"){ + goalheading = "Goals"; + } + else{ + goalheading = "Aim of contact" + } + /* Quotation */ var quoted: string = ""; if(data[i].quote != ""){ @@ -50,7 +59,7 @@ import { BlockQuoteB } from "./Quotes"; /* textparts */ if(data[i].aimofcontact === ""){ problem = true; - problem_desc.push(" aim of contact missing"); + problem_desc.push(" " + goalheading + " missing"); } if(data[i].insights === ""){ problem = true; @@ -94,6 +103,8 @@ import { BlockQuoteB } from "./Quotes"; } } + + let node = <> <br/> <h3>{data[i].vorname} {data[i].nachnname}</h3> @@ -114,7 +125,7 @@ import { BlockQuoteB } from "./Quotes"; <img className="middle sechpro" src={data[i].pictureurl}/> </div> </div> - <h4>Aim of contact</h4> + <h4>{goalheading}</h4> <p>{data[i].aimofcontact}</p> <h4>Insights</h4> <p>{data[i].insights}</p>