-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3357 from GCTC-NTGC/feature/3285-restore-old-coe-…
…for-old-search Restore old labels for old search page
- Loading branch information
Showing
3 changed files
with
83 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
frontend/talentsearch/src/js/components/search/deprecated/localizedConstants.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { defineMessages, MessageDescriptor } from "react-intl"; | ||
import { OperationalRequirement } from "@common/api/generated"; | ||
import { getOrThrowError } from "@common/helpers/util"; | ||
|
||
export const operationalRequirements = defineMessages({ | ||
[OperationalRequirement.ShiftWork]: { | ||
defaultMessage: "Shift work", | ||
description: "The operational requirement described as shift work.", | ||
}, | ||
[OperationalRequirement.OnCall]: { | ||
defaultMessage: "24/7 on-call", | ||
description: "The operational requirement described as 24/7 on-call.", | ||
}, | ||
[OperationalRequirement.Travel]: { | ||
defaultMessage: "Travel as required", | ||
description: "The operational requirement described as travel as required.", | ||
}, | ||
[OperationalRequirement.TransportEquipment]: { | ||
defaultMessage: "Transport equipment up to 20kg", | ||
description: | ||
"The operational requirement described as transport equipment up to 20kg.", | ||
}, | ||
[OperationalRequirement.DriversLicense]: { | ||
defaultMessage: "Driver's license", | ||
description: "The operational requirement described as driver's license.", | ||
}, | ||
[OperationalRequirement.WorkWeekends]: { | ||
defaultMessage: "Work weekends", | ||
description: "The operational requirement described as work weekends.", | ||
}, | ||
[OperationalRequirement.OvertimeScheduled]: { | ||
defaultMessage: "Work scheduled overtime", | ||
description: "The operational requirement described as scheduled overtime.", | ||
}, | ||
[OperationalRequirement.OvertimeShortNotice]: { | ||
defaultMessage: "Work overtime on short notice", | ||
description: | ||
"The operational requirement described as short notice overtime.", | ||
}, | ||
}); | ||
|
||
export const getOperationalRequirement = ( | ||
operationalRequirementId: string | number, | ||
): MessageDescriptor => | ||
getOrThrowError( | ||
operationalRequirements, | ||
operationalRequirementId, | ||
`Invalid Operational Requirement '${operationalRequirementId}'`, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters