LoadAdminActivities

Function: loadAdminActivities()

[object Object]

Defined in: routes/admin/activities/activities.handlers.tsx:22

Fetches all activities for a specific year for administrative purposes.

Unlike the standard member view, this handler explicitly requests both past and future activities to ensure board members have a complete historical and upcoming record for the selected year.

Parameters

year

[object Object]

The calendar year for which to retrieve activities.

setLoading

(loading) => void

State setter to track the network request.

setActivities

(activities) => void

State setter to store the retrieved activity list.

page?

[object Object]

The page number to fetch.

pageSize?

[object Object]

The number of activities to fetch per page.

[object Object]

A search term to filter activities by name or location, applied server-side.

Returns

Promise<void>

Async

On this page