HandleEnrollParticipant
Function: handleEnrollParticipant()
[object Object]
Defined in: app/components/Activity/Edit/EditParticipantsTile/EditParticipantsTile.handlers.tsx:71
Manually enrolls a specific member into an activity.
This is an administrative action that bypasses standard user checks. Upon success, it updates the local activity state by pushing the new enrollment into the list and closes the search interface.
Parameters
args
The configuration object.
activity
The current activity.
member
The member to be enrolled.
setActivity
Dispatch<SetStateAction<ActivityResponseDto | null>>
State setter to update the activity with the new participant.
setIsSearchOpen
(open) => void
Callback to close the member search modal.
setLoading
(loading) => void
Callback to toggle the local loading state.
Returns
Promise<void>