Skip to content

Commit f4a2219

Browse files
committed
fix(create-new-team): update the title & subtitle of SkillListPopup
Addresses topcoder-archive#400 (comment)
1 parent bd62f71 commit f4a2219

File tree

1 file changed

+4
-3
lines changed
  • src/routes/CreateNewTeam/components/SkillListPopup

1 file changed

+4
-3
lines changed

src/routes/CreateNewTeam/components/SkillListPopup/index.jsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ function SkillListPopup({
2323
onClose,
2424
onContinueClick,
2525
}) {
26+
const title = page === "jd" ? "Identified Skills" : "Selected Skills";
2627
const subTitle =
2728
page === "jd"
28-
? `Topcoder has identified the following skills referenced in your job description. Select your the ${MAX_SELECTED_SKILLS} skills most important to be successful in the job. These skills will be weighted more heavily in matching.`
29-
: `You have chosen the following skills in your request. Please select your the ${MAX_SELECTED_SKILLS} skills most important to be successful in the job. These skills will be weighted more heavily in matching.`;
29+
? `Topcoder has identified the following skills referenced in your job description. Select the ${MAX_SELECTED_SKILLS} skills most important to be successful in the job. These skills will be weighted more heavily in matching.`
30+
: `You have chosen the following skills in your request. Please select the ${MAX_SELECTED_SKILLS} skills most important to be successful in the job. These skills will be weighted more heavily in matching.`;
3031
const skillsNotFoundTxt = "No skills are found in your Job Description";
3132

3233
const toggleSkill = useCallback(
@@ -62,7 +63,7 @@ function SkillListPopup({
6263
open={open}
6364
onClose={onClose}
6465
headerIcon={<IconSingleManAdd />}
65-
title="Identified Skills"
66+
title={title}
6667
subtitle={skills.length ? subTitle : skillsNotFoundTxt}
6768
isLoading={isLoading}
6869
loadingMessage={loadingTxt || "Loading..."}

0 commit comments

Comments
 (0)