HandleUpdateEnrollmentStatus
Function: handleUpdateEnrollmentStatus()
[object Object]
Defined in: app/routes/admin/edit-member/edit-member.handlers.tsx:290
Updates the status (e.g., Active, Graduated) of an existing study enrollment via JSON Patch.
Parameters
enrollmentId
[object Object]
The unique ID of the enrollment record to update.
newStatus
The new status to be assigned.
setLoading
(loading) => void
State setter to track the update request.
setEnrollments
Dispatch<SetStateAction<StudyEnrollmentResponseDto[]>>
State setter to refresh the status in the local list.
Returns
Promise<void>