Skip to content

Commit 5d8b41b

Browse files
committed
fix: make tech review boxes description more detailed
1 parent e2110b8 commit 5d8b41b

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

apps/frontend/src/components/questionary/questionaryComponents/TechnicalReviewBasis/QuestionaryComponentTechnicalReviewBasis.tsx

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { useCheckAccess } from 'hooks/common/useCheckAccess';
2020
import { SubmitActionDependencyContainer } from 'hooks/questionary/useSubmitActions';
2121
import { TechnicalReviewSubmissionState } from 'models/questionary/technicalReview/TechnicalReviewSubmissionState';
2222
import { Option } from 'utils/utilTypes';
23+
import { useTranslation } from 'react-i18next';
2324

2425
function QuestionaryComponentTechnicalReviewBasis(props: BasicComponentProps) {
2526
const {
@@ -28,7 +29,7 @@ function QuestionaryComponentTechnicalReviewBasis(props: BasicComponentProps) {
2829
},
2930
formikProps,
3031
} = props;
31-
32+
const { t } = useTranslation();
3233
const theme = useTheme();
3334
const { state, dispatch } = useContext(
3435
QuestionaryContext
@@ -156,8 +157,13 @@ function QuestionaryComponentTechnicalReviewBasis(props: BasicComponentProps) {
156157
isInstrumentScientist ||
157158
fapSecOrChairCanEdit) && (
158159
<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
161167
</InputLabel>
162168
{/* NOTE: We are using Editor directly instead of FormikUICustomEditor with Formik Field component.
163169
This is because FormikUICustomEditor is not updated properly when we set form field onEditorChange.
@@ -209,8 +215,13 @@ function QuestionaryComponentTechnicalReviewBasis(props: BasicComponentProps) {
209215
isInstrumentScientist ||
210216
fapSecOrChairCanEdit) && (
211217
<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
214225
</InputLabel>
215226
<FileUploadComponent
216227
maxFiles={5}
@@ -241,8 +252,12 @@ function QuestionaryComponentTechnicalReviewBasis(props: BasicComponentProps) {
241252
</Grid>
242253
)}
243254
<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`}
246261
</InputLabel>
247262
<Editor
248263
id="publicComment"

0 commit comments

Comments
 (0)