HandleAddEnrollment
Function: handleAddEnrollment()
[object Object]
Defined in: app/routes/admin/edit-member/edit-member.handlers.tsx:242
Adds a new study enrollment record to the member's profile.
Parameters
memberId
string | undefined
The ID of the member receiving the enrollment.
selectedStudyId
number | ""
The ID of the chosen study program.
setLoading
(loading) => void
State setter to track the creation request.
setEnrollments
Dispatch<SetStateAction<StudyEnrollmentResponseDto[]>>
State setter to add the new record to the local list.
Returns
Promise<void>