Skip to content

Commit

Permalink
Add info texts for university risk levels
Browse files Browse the repository at this point in the history
  • Loading branch information
erikao1998 committed Jan 24, 2024
1 parent 8dc232c commit f927e9d
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/client/components/ResultPage/TotalRisk.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ const TotalRisk = ({
id: 'university',
text: t('risks:universityRiskLevel'),
riskLevel: universityRisk(resultData['20'], resultData['21']),
infoText: results.find(
(r) =>
r.optionLabel ===
`universityRiskLevel${universityRisk(
resultData['20'],
resultData['21']
)}`
)?.isSelected[language as keyof Locales],
},
{
id: 'duration',
Expand Down
51 changes: 51 additions & 0 deletions src/server/data/results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,57 @@ const getResultData = (): Result[] => [
},
},
},
{
id: 28,
surveyId: 1,
optionLabel: 'universityRiskLevel1',
isSelected: {
fi: '*Yhteistyöyliopisto on listattu World Higher Education -tietokannassa ja kuuluu lisäksi johonkin seuraavista: Euroopan tai maailman ylipistojen liitto (EUA/IAU), Magna Charta Observatory, Scholars at Risk.*',
sv: '',
en: '*Collaboration university is listed in the World Higher Education database and is a member of European University Association, International University Association, Magna Charta Observatory or Scholars at Risk network.*',
},
data: {
allDimensions: {
fi: '',
sv: '',
en: '',
},
},
},
{
id: 29,
surveyId: 1,
optionLabel: 'universityRiskLevel2',
isSelected: {
fi: '*Yhteistyöyliopisto on listattu World Higher Education -tietokannassa mutta ei ole Euroopan tai maailman yliopistojen liiton, Magna Charta Observatoryn tai Scholars at Risk -verkoston jäsen.*',
sv: '',
en: '*Collaboration university is listed in the World Higher Education database but is not a member of European University Association, International University Association, Magna Charta Observatory or Scholars at Risk network.*',
},
data: {
allDimensions: {
fi: '',
sv: '',
en: '',
},
},
},
{
id: 30,
surveyId: 1,
optionLabel: 'universityRiskLevel3',
isSelected: {
fi: '*Yhteistyöyliopistoa ei löydy World Higher Education -tietokannasta. Varmista, että kyseessä on maansa virallisesti hyväksyttyihin kuuluva yliopisto.*',
sv: '',
en: '*Collaboration university is not part of the World Higher Education database. Please take steps to make sure, the partner is a legitimate university.*',
},
data: {
allDimensions: {
fi: '',
sv: '',
en: '',
},
},
},
]

export default getResultData

0 comments on commit f927e9d

Please sign in to comment.