Interface UseSubmissionsValue

The return type of the useSubmissions hook.

Hierarchy

  • UseSubmissionsValue

Properties

approveAll: (() => void)

Type declaration

    • (): void
    • Function to approve all submissions in the current list.

      Returns void

currentPage: number

The current page of submissions that has been fetched.

fetchMore: ((refresh?) => Promise<void>)

Type declaration

    • (refresh?): Promise<void>
    • Function to fetch additional submissions beyond the current list. Pass refresh to indicate whether to refresh the existing list.

      Parameters

      • Optional refresh: boolean

      Returns Promise<void>

fetched: boolean

Boolean indicating whether the list of submissions has been fetched from the backend.

hasMore: boolean

Boolean indicating whether there are more submissions available to fetch.

refresh: ((quiet) => void)

Type declaration

    • (quiet): void
    • Function to refresh the list of submissions by re-fetching them from the backend. Pass quiet to suppress loading indicators.

      Parameters

      • quiet: boolean

      Returns void

rejectAll: (() => void)

Type declaration

    • (): void
    • Function to reject all submissions in the current list.

      Returns void

submissions: any[]

The list of submissions currently fetched.

Generated using TypeDoc