-
- {intl.formatMessage({
- defaultMessage:
- "I would consider accepting a job that lasts for:",
- id: "Vc9vE7",
- description:
- "Label for what length of position user prefers, followed by colon",
- })}
-
+
{intl.formatMessage(profileMessages.contractDuration)}
- -
- {intl.formatMessage({
- defaultMessage:
- "any duration. (short term, long term, or indeterminate duration)",
- id: "uHx3G7",
- description:
- "Label displayed on Work Preferences form for any duration option",
- })}
-
+ - {intl.formatMessage(profileMessages.anyDuration)}
)}
@@ -101,71 +64,90 @@ const WorkPreferencesSection = ({ user }: WorkPreferencesSectionProps) => {
{positionDuration &&
!positionDuration.includes(PositionDuration.Temporary) && (
-
- {intl.formatMessage({
- defaultMessage:
- "I would consider accepting a job that lasts for:",
- id: "Vc9vE7",
- description:
- "Label for what length of position user prefers, followed by colon",
- })}
-
+
{intl.formatMessage(profileMessages.contractDuration)}
- -
- {intl.formatMessage({
- defaultMessage: "Permanent duration",
- id: "8cRL8r",
- description: "Permanent duration only",
- })}{" "}
-
+ - {intl.formatMessage(profileMessages.anyDuration)}
)}
- {anyCriteriaSelected && !isEmpty(unacceptedOperationalArray) && (
-
-
- {intl.formatMessage({
- defaultMessage: "I would consider accepting a job that:",
- id: "l/jGX9",
- description:
- "Label for what conditions a user will accept, followed by a colon",
+
+
{intl.formatMessage(profileMessages.acceptableRequirements)}
+
+ {OperationalRequirements.map((requirement) => (
+ -
+
+
+ {acceptedRequirements.includes(requirement) ? (
+
+ ) : (
+
+ )}
+
+
+ {intl.formatMessage(
+ getOperationalRequirement(
+ requirement,
+ "firstPersonNoBold",
+ ),
+ )}
+
+
+
+ ))}
+
+
+
+
+
+ {intl.formatMessage(profileMessages.currentLocation)}
+
+
+ {formatLocation({
+ city: currentCity,
+ region: currentProvince,
+ intl,
})}
-
-
- {acceptedOperationalArray}
-
-
- )}
- {anyCriteriaSelected && !isEmpty(unacceptedOperationalArray) && (
-
+
+
+
{intl.formatMessage({
- defaultMessage:
- "I would not consider accepting a job that:",
- id: "TwSvmH",
- description: "would not accept job line before a list",
+ defaultMessage: "Work location:",
+ id: "b5bUa0",
+ description: "Work Location label, followed by colon",
})}
-
-
- {unacceptedOperationalArray}
-
-
- )}
-
- {anyCriteriaSelected && isEmpty(unacceptedOperationalArray) && (
+
+
{regionPreferences}
+
+
+ {!!locationExemptions && (
- {intl.formatMessage({
- defaultMessage: "I would consider accepting a job that:",
- id: "l/jGX9",
- description:
- "Label for what conditions a user will accept, followed by a colon",
- })}
+
+ {intl.formatMessage({
+ defaultMessage: "Work location exceptions",
+ id: "OpKC2i",
+ description: "Work location exceptions label",
+ })}
+ {intl.formatMessage(commonMessages.dividingColon)}
+
+ {locationExemptions}
-
- {acceptedOperationalArray}
-
)}
diff --git a/apps/web/src/components/UserProfile/UserProfile.tsx b/apps/web/src/components/UserProfile/UserProfile.tsx
index a6bd542206f..35901d7b0d9 100644
--- a/apps/web/src/components/UserProfile/UserProfile.tsx
+++ b/apps/web/src/components/UserProfile/UserProfile.tsx
@@ -2,7 +2,6 @@ import { useIntl } from "react-intl";
import ChatBubbleLeftRightIcon from "@heroicons/react/24/outline/ChatBubbleLeftRightIcon";
import BuildingLibraryIcon from "@heroicons/react/24/outline/BuildingLibraryIcon";
import BoltIcon from "@heroicons/react/24/outline/BoltIcon";
-import MapPinIcon from "@heroicons/react/24/outline/MapPinIcon";
import HandThumbUpIcon from "@heroicons/react/24/outline/HandThumbUpIcon";
import UserIcon from "@heroicons/react/24/outline/UserIcon";
import UserCircleIcon from "@heroicons/react/24/solid/UserCircleIcon";
@@ -23,7 +22,6 @@ import AboutSection from "./ProfileSections/AboutSection";
import DiversityEquityInclusionSection from "./ProfileSections/DiversityEquityInclusionSection";
import GovernmentInformationSection from "./ProfileSections/GovernmentInformationSection";
import LanguageInformationSection from "./ProfileSections/LanguageInformationSection";
-import WorkLocationSection from "./ProfileSections/WorkLocationSection";
import WorkPreferencesSection from "./ProfileSections/WorkPreferencesSection";
import SkillShowcaseSection from "./SkillShowcaseSection";
@@ -73,16 +71,12 @@ const UserProfile = ({ user, headingLevel = "h2" }: UserProfileProps) => {
-