Skip to content

Commit 491788a

Browse files
committed
refactor: dob and sex now static form elements
1 parent c41efaf commit 491788a

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

apps/web/src/features/session/components/StartSessionForm/StartSessionForm.tsx

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -105,30 +105,18 @@ export const StartSessionForm = ({ currentGroup, initialValues, readOnly, onSubm
105105
}
106106
},
107107
subjectDateOfBirth: {
108-
kind: 'dynamic',
109-
deps: [],
110-
render() {
111-
return {
112-
kind: 'date',
113-
label: t('core.identificationData.dateOfBirth.label')
114-
};
115-
}
108+
kind: 'date',
109+
label: t('core.identificationData.dateOfBirth.label')
116110
},
117111
subjectSex: {
118-
kind: 'dynamic',
119-
deps: [],
120-
render() {
121-
return {
122-
description: t('core.identificationData.sex.description'),
123-
kind: 'string',
124-
label: t('core.identificationData.sex.label'),
125-
options: {
126-
FEMALE: t('core.identificationData.sex.female'),
127-
MALE: t('core.identificationData.sex.male')
128-
},
129-
variant: 'select'
130-
};
131-
}
112+
description: t('core.identificationData.sex.description'),
113+
kind: 'string',
114+
label: t('core.identificationData.sex.label'),
115+
options: {
116+
FEMALE: t('core.identificationData.sex.female'),
117+
MALE: t('core.identificationData.sex.male')
118+
},
119+
variant: 'select'
132120
}
133121
}
134122
},

0 commit comments

Comments
 (0)