|
1 | 1 | import { useEffect } from 'react' |
2 | 2 | import { useDispatch, useSelector } from 'react-redux' |
3 | | -import { Box, CircularProgress, IconButton } from '@mui/material' |
| 3 | +import { Alert, AlertTitle, Box, CircularProgress, IconButton, Typography } from '@mui/material' |
4 | 4 | import { useFetchSingleKeyData } from '../../../hooks/useFetchKeyData' |
5 | 5 | import { getReports } from '../../../util/redux/reportsReducer' |
6 | 6 | import { wsJoinRoom, wsLeaveRoom } from '../../../util/redux/websocketReducer.js' |
@@ -73,13 +73,30 @@ const ProgrammeView = () => { |
73 | 73 |
|
74 | 74 | <h3>{programme.koulutusohjelma}</h3> |
75 | 75 | </div> |
| 76 | + |
| 77 | + <Alert severity="info" icon={false} sx={{ marginTop: 4 }}> |
| 78 | + <Typography variant="h6">{t('keyData:title')}</Typography> |
| 79 | + <br /> |
| 80 | + <Typography variant="body1">{t('keyData:info1')}</Typography> |
| 81 | + <br /> |
| 82 | + <Typography variant="body1">{t('keyData:info2')}</Typography> |
| 83 | + <br /> |
| 84 | + <Typography variant="body1">{t('keyData:keyFigureInfo')}</Typography> |
| 85 | + <ul> |
| 86 | + <li>{t('keyData:vetovoima')}</li> |
| 87 | + <li>{t('keyData:lapivirtaus')}</li> |
| 88 | + <li>{t('keyData:palaute')}</li> |
| 89 | + <li>{t('keyData:resurssit')}</li> |
| 90 | + </ul> |
| 91 | + <Typography variant="body1">{t('keyData:criteriaInfo')}</Typography> |
| 92 | + </Alert> |
| 93 | + |
76 | 94 | {KeyDataPoints.map(data => ( |
77 | 95 | <> |
78 | 96 | <KeyDataCard key={data.title} level={level} metadata={metadata} programme={programme} {...data} /> |
79 | 97 | <TextFieldComponent id={data.title} type="comment" /> |
80 | 98 | </> |
81 | 99 | ))} |
82 | | - <TextFieldComponent id="testing" /> |
83 | 100 | </Box> |
84 | 101 | ) |
85 | 102 | } |
|
0 commit comments