File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed
routes/_auth/questionnaire Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export const messages = i18n("periodForm", {
27
27
} ) ;
28
28
29
29
export function PeriodForm ( { onSave, actionLabel } : PeriodFormProps ) {
30
- const f = useForm < FormValues > ( { } ) ;
30
+ const f = useForm < FormValues > ( { mode : "uncontrolled" } ) ;
31
31
const t = useStore ( messages ) ;
32
32
33
33
return (
Original file line number Diff line number Diff line change @@ -30,16 +30,18 @@ function QuestionnaireParticipant() {
30
30
< h3 > { t . title } </ h3 >
31
31
< Stack >
32
32
< Table >
33
- < Table . Tr >
34
- < Table . Th > { t . participantLabel } </ Table . Th >
35
- < Table . Td > { questionnaire ?. participant . id } </ Table . Td >
36
- < Table . Td > { birthday ? time ( new Date ( birthday ) ) : < i > { t . birthdateMissing } </ i > } </ Table . Td >
37
- </ Table . Tr >
38
- < Table . Tr >
39
- < Table . Th > { t . studyLabel } </ Table . Th >
40
- < Table . Td > { questionnaire ?. study . id } </ Table . Td >
41
- < Table . Td > { questionnaire ?. study . title } </ Table . Td >
42
- </ Table . Tr >
33
+ < Table . Tbody >
34
+ < Table . Tr >
35
+ < Table . Th > { t . participantLabel } </ Table . Th >
36
+ < Table . Td > { questionnaire ?. participant . id } </ Table . Td >
37
+ < Table . Td > { birthday ? time ( new Date ( birthday ) ) : < i > { t . birthdateMissing } </ i > } </ Table . Td >
38
+ </ Table . Tr >
39
+ < Table . Tr >
40
+ < Table . Th > { t . studyLabel } </ Table . Th >
41
+ < Table . Td > { questionnaire ?. study . id } </ Table . Td >
42
+ < Table . Td > { questionnaire ?. study . title } </ Table . Td >
43
+ </ Table . Tr >
44
+ </ Table . Tbody >
43
45
</ Table >
44
46
< form onSubmit = { handleSubmit } >
45
47
< Button type = "submit" > { t . formAction } </ Button >
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ function Questionnaire() {
23
23
24
24
const t = useStore ( messages ) ;
25
25
26
- const f = useForm < FormValues > ( ) ;
26
+ const f = useForm < FormValues > ( { mode : "uncontrolled" } ) ;
27
27
28
28
const validateParticipantMutation = $api . useMutation ( "get" , "/participants/{id}" , {
29
29
onError ( error ) {
You can’t perform that action at this time.
0 commit comments