HandleAddGroupEnrollment

Function: handleAddGroupEnrollment()

[object Object]

Defined in: app/routes/admin/edit-group/edit-group.handlers.tsx:283

Adds a new member to the group for a specific association year.

Parameters

id

number | null

The ID of the group receiving a new member.

member

MemberResponseDto

The member data to be enrolled.

selectedYear

[object Object]

The association year for the new membership.

setLoading

(loading) => void

Setter to track the creation progress.

setEnrollments

Dispatch<SetStateAction<GroupMembershipResponseDto[]>>

Setter to update the local membership list.

setAddEnrollmentModalIsOpen

(open) => void

Setter to close the enrollment modal on success.

Returns

Promise<void>

Async

On this page