Skip to content

Commit

Permalink
Update HR specialist test
Browse files Browse the repository at this point in the history
  • Loading branch information
chakladarj-nih committed Jan 27, 2025
1 parent 8a964b3 commit 59ddf6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/containers/Application/Application.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import {
OWM_TEAM,
COMMITTEE_MEMBER_VOTING,
COMMITTEE_MEMBER_NON_VOTING,
COMMITTEE_HR_SPECIALIST,
} from '../../constants/Roles';

import {
Expand Down Expand Up @@ -476,6 +477,10 @@ const application = () => {
);
};

const isHRSpecialist = (userVacancyCommitteeRole) => {
return userVacancyCommitteeRole === COMMITTEE_HR_SPECIALIST;
};

const onViewApplicantsListClick = () => {
history.push(MANAGE_VACANCY + application.vacancyId + '/applicants');
};
Expand Down Expand Up @@ -609,6 +614,7 @@ const application = () => {
vacancyState === TRIAGE ? false : true
}
maxCommentLength={10000}
isHRSpecialist={isHRSpecialist(userVacancyCommitteeRole)}
/>
<TriageWidget
title='Committee Chair Feedback and Notes'
Expand Down
3 changes: 1 addition & 2 deletions src/containers/Application/TriageWidget/TriageWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const { TextArea } = Input;
const { Text } = Typography;

const triageWidget = (props) => {
const isHRSpecialist = true;
return (<div style={props.style}>
<InfoCard
title={props.title}
Expand Down Expand Up @@ -59,7 +58,7 @@ const triageWidget = (props) => {
/>
)}
</InfoCardRow>
{isHRSpecialist ? (
{props.isHRSpecialist ? (
<InfoCardRow
style={{ display: 'flex', justifyContent: 'space-between' }}
>
Expand Down

0 comments on commit 59ddf6c

Please sign in to comment.