FrontendComponentsActivityEditEditParticipantsTileEditParticipantTileEditParticipantTile.handlersFunctions
HandleParticipantUnenroll
Function: handleParticipantUnenroll()
[object Object]
Defined in: app/components/Activity/Edit/EditParticipantsTile/EditParticipantTile/EditParticipantTile.handlers.tsx:22
Handles the administrative removal of a participant from an activity.
Triggers a toast notification with a promise that resolves when the unenrollment API call is complete.
Parameters
args
The configuration object.
activityId
[object Object]
enrollment
The enrollment record containing activity and member identification.
onUnenroll
() => void
Callback executed after a successful server-side unenrollment to refresh local state.
setLoading
(loading) => void
Function to toggle the UI loading state.
Returns
[object Object]