alpha-version-dce-check-in-ui
Version:
UI for taking attendance and checking people in.
36 lines (35 loc) • 1.41 kB
TypeScript
/**
* Page for selecting previous groups.
* @author Benedikt Arnarsson
* @author Gabe Abrams
*/
import React from 'react';
import { StudentGroupAssignment } from 'dce-live-grouper';
import AssignToGroups from '../../shared/types/AssignToGroups';
import CheckInUIProps from '../../types/CheckInUIProps';
import MMDDYY from '../../shared/types/MMDDYY';
type Props = {
checkInProps: CheckInUIProps;
occurrenceDate: MMDDYY;
assignToGroups: AssignToGroups;
/**
* Handler for when user is ready to continue to the next step
* @param [opts] all arguments in one object. If excluded, just taking
* attendance and skipping straight to the check in QR code screen. If
* included, moving on to next step (pre assign or group settings)
* @param [opts.seriesId] the id of the selected series to copy from or the
* new series id
* @param [opts.oldGroups] the groups from the selected series, or empty
* if starting a new series
* @param [opts.preAssign] if true, go to pre assign next before creating
* occurrence. If false, occurrence was already set up and we can skip
* straight to the QR code screen
*/
onSubmit: (opts?: {
seriesId: number;
oldGroups?: StudentGroupAssignment[];
preAssign: boolean;
}) => void;
};
declare const SeriesSelection: React.FC<Props>;
export default SeriesSelection;