diff --git a/src/i18n/en-ca/index.ts b/src/i18n/en-ca/index.ts index 2f0e307..f344a5b 100644 --- a/src/i18n/en-ca/index.ts +++ b/src/i18n/en-ca/index.ts @@ -292,6 +292,8 @@ export default { VACATION: "Vacation", REMOTE: "Remote", OFFICE: "Office", + BANKING: "Banking Hours", + WITHDRAW_BANKED: "Withdrawing Hours", }, fields: { start: "Start (HH:mm)", diff --git a/src/i18n/fr-ca/index.ts b/src/i18n/fr-ca/index.ts index 504c688..e197001 100644 --- a/src/i18n/fr-ca/index.ts +++ b/src/i18n/fr-ca/index.ts @@ -293,6 +293,8 @@ export default { VACATION: "Vacance", REMOTE: "Télétravail", OFFICE: "Bureau", + BANKING: "Banquer des heures", + WITHDRAW_BANKED: "Prendre heures en banque", }, fields: { start: "Début (HH:mm)", diff --git a/src/modules/timesheets/models/shift.models.ts b/src/modules/timesheets/models/shift.models.ts index 5f3de78..0524054 100644 --- a/src/modules/timesheets/models/shift.models.ts +++ b/src/modules/timesheets/models/shift.models.ts @@ -4,10 +4,12 @@ export const SHIFT_TYPES: ShiftType[] = [ 'EMERGENCY', 'HOLIDAY', 'VACATION', - 'SICK' + 'SICK', + 'BANKING', + 'WITHDRAW_BANKED', ]; -export type ShiftType = 'REGULAR' | 'EVENING' | 'EMERGENCY' | 'HOLIDAY' | 'VACATION' | 'SICK'; +export type ShiftType = 'REGULAR' | 'EVENING' | 'EMERGENCY' | 'HOLIDAY' | 'VACATION' | 'SICK' | 'BANKING' | 'WITHDRAW_BANKED'; export type ShiftErrorCode = 'SHIFT_OVERLAP' | 'MISSING_START_TIME' | 'MISSING_END_TIME' | 'COMMENT_LENGTH_EXCEEDED' | 'APPROVAL_LOCK' | 'INVALID_DATE' | 'INVALID TYPE' | 'INVALID_TIMESHEET'; diff --git a/src/modules/timesheets/utils/shift.util.ts b/src/modules/timesheets/utils/shift.util.ts index 0dc2c5e..09104fc 100644 --- a/src/modules/timesheets/utils/shift.util.ts +++ b/src/modules/timesheets/utils/shift.util.ts @@ -33,4 +33,6 @@ export const SHIFT_OPTIONS: ShiftOption[] = [ { label: 'timesheet.shift.types.VACATION', value: 'VACATION', icon: 'beach_access', icon_color: 'deep-orange-5' }, { label: 'timesheet.shift.types.HOLIDAY', value: 'HOLIDAY', icon: 'event', icon_color: 'purple-5' }, { label: 'timesheet.shift.types.SICK', value: 'SICK', icon: 'medication_liquid', icon_color: 'light-blue-6' }, + { label: 'timesheet.shift.types.BANKING', value: 'BANKING', icon: 'savings', icon_color: 'pink-3' }, + { label: 'timesheet.shift.types.WITHDRAW_BANKED', value: 'WITHDRAW_BANKED', icon: 'attach_money', icon_color: 'yellow-4' }, ];