|
1 | 1 | import { Box, CssBaseline, Grid, InputLabel, useTheme } from '@mui/material'; |
2 | 2 | import { Field } from 'formik'; |
3 | 3 | import React, { ChangeEvent, useContext, useEffect, useState } from 'react'; |
| 4 | +import { useTranslation } from 'react-i18next'; |
4 | 5 |
|
5 | 6 | import { |
6 | 7 | FileUploadComponent, |
@@ -28,7 +29,7 @@ function QuestionaryComponentTechnicalReviewBasis(props: BasicComponentProps) { |
28 | 29 | }, |
29 | 30 | formikProps, |
30 | 31 | } = props; |
31 | | - |
| 32 | + const { t } = useTranslation(); |
32 | 33 | const theme = useTheme(); |
33 | 34 | const { state, dispatch } = useContext( |
34 | 35 | QuestionaryContext |
@@ -156,8 +157,13 @@ function QuestionaryComponentTechnicalReviewBasis(props: BasicComponentProps) { |
156 | 157 | isInstrumentScientist || |
157 | 158 | fapSecOrChairCanEdit) && ( |
158 | 159 | <Grid item xs={12}> |
159 | | - <InputLabel htmlFor="comment" shrink margin="dense"> |
160 | | - Internal comment |
| 160 | + <InputLabel |
| 161 | + htmlFor="comment" |
| 162 | + margin="dense" |
| 163 | + sx={{ fontWeight: 'bold', color: 'text.primary' }} |
| 164 | + > |
| 165 | + Internal comment - To only be seen by other technical |
| 166 | + reviewers |
161 | 167 | </InputLabel> |
162 | 168 | {/* NOTE: We are using Editor directly instead of FormikUICustomEditor with Formik Field component. |
163 | 169 | This is because FormikUICustomEditor is not updated properly when we set form field onEditorChange. |
@@ -209,8 +215,13 @@ function QuestionaryComponentTechnicalReviewBasis(props: BasicComponentProps) { |
209 | 215 | isInstrumentScientist || |
210 | 216 | fapSecOrChairCanEdit) && ( |
211 | 217 | <Grid item xs={12}> |
212 | | - <InputLabel htmlFor="comment" shrink margin="dense"> |
213 | | - Internal documents |
| 218 | + <InputLabel |
| 219 | + htmlFor="comment" |
| 220 | + margin="dense" |
| 221 | + sx={{ fontWeight: 'bold', color: 'text.primary' }} |
| 222 | + > |
| 223 | + Internal documents - To only be seen by other technical |
| 224 | + reviewers |
214 | 225 | </InputLabel> |
215 | 226 | <FileUploadComponent |
216 | 227 | maxFiles={5} |
@@ -241,8 +252,12 @@ function QuestionaryComponentTechnicalReviewBasis(props: BasicComponentProps) { |
241 | 252 | </Grid> |
242 | 253 | )} |
243 | 254 | <Grid item xs={12}> |
244 | | - <InputLabel htmlFor="publicComment" shrink margin="dense"> |
245 | | - Comments for the review panel |
| 255 | + <InputLabel |
| 256 | + htmlFor="publicComment" |
| 257 | + margin="dense" |
| 258 | + sx={{ fontWeight: 'bold', color: 'text.primary' }} |
| 259 | + > |
| 260 | + {`Comments be seen by the ${t('FAP')} panels`} |
246 | 261 | </InputLabel> |
247 | 262 | <Editor |
248 | 263 | id="publicComment" |
|
0 commit comments