sparkletown/sparkle

View on GitHub
src/store/actions/Attendance.ts

Summary

Maintainability
A
0 mins
Test Coverage
export const RETAIN_ATTENDANCE: string = "RETAIN_ATTENDANCE";

interface RetainAttenanceAction {
  type: typeof RETAIN_ATTENDANCE;
  payload: boolean;
}

export const retainAttendance = (retainAttendance: boolean) => ({
  type: RETAIN_ATTENDANCE,
  payload: retainAttendance,
});

export type AttendanceActions = RetainAttenanceAction;