Skip to content

Commit

Permalink
adds new column and implements type map
Browse files Browse the repository at this point in the history
  • Loading branch information
Snorre98 committed Nov 3, 2024
1 parent 475739b commit b30a8ec
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { STATUS } from '~/http_status_codes';
import { KEY } from '~/i18n/constants';
import { reverse } from '~/named-urls';
import { ROUTES } from '~/routes';
import { RecruitmentPriorityChoicesMapping, RecruitmentStatusChoicesMapping } from '~/types';
import { dbT } from '~/utils';
import { AdminPageLayout } from '../AdminPageLayout/AdminPageLayout';
import styles from './RecruitmentGangAllApplicantsAdminPage.module.scss';
Expand Down Expand Up @@ -64,7 +65,6 @@ export function RecruitmentGangAllApplicantsAdminPage() {
setRecruitment(resp.data);
})
.catch((data) => {
// TODO add error pop up message?
if (data.request.status === STATUS.HTTP_404_NOT_FOUND) {
navigate({ url: ROUTES.frontend.admin_recruitment });
}
Expand All @@ -81,6 +81,7 @@ export function RecruitmentGangAllApplicantsAdminPage() {
{ content: t(KEY.recruitment_position), sortable: true },
{ content: t(KEY.recruitment_interview_time), sortable: true },
{ content: t(KEY.recruitment_interview_location), sortable: true },
{ content: t(KEY.recruitment_recruiter_priority), sortable: true },
{ content: t(KEY.recruitment_recruiter_status), sortable: true },
];

Expand All @@ -106,7 +107,8 @@ export function RecruitmentGangAllApplicantsAdminPage() {
{ content: <Link url={applicationURL}>{dbT(application.recruitment_position, 'name')}</Link> },
application.interview?.interview_time,
application.interview?.interview_location,
application.recruiter_status,
RecruitmentPriorityChoicesMapping[application.recruiter_priority as number],
RecruitmentStatusChoicesMapping[application.recruiter_status as number],
],
};
});
Expand Down

0 comments on commit b30a8ec

Please sign in to comment.