Skip to content

Commit

Permalink
adds correct link
Browse files Browse the repository at this point in the history
  • Loading branch information
Snorre98 committed Nov 3, 2024
1 parent 475739b commit df56cb5
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useTranslation } from 'react-i18next';
import { Table } from '~/Components/Table';
import type { RecruitmentUserDto } from '~/dto';
import { KEY } from '~/i18n/constants';
import { reverse } from '~/named-urls';
import { ROUTES } from '~/routes';
import { dbT } from '~/utils';
import { InputField } from '../InputField';
Expand Down Expand Up @@ -54,7 +55,19 @@ export function RecruitmentWithoutInterviewTable({ applicants }: RecruitmentWith
return [
{
value: `${user.first_name} ${user.last_name}`,
content: <Link url={ROUTES.frontend.recruitment_application}>{`${user.first_name} ${user.last_name}`}</Link>,
content: (
<Link
url={reverse({
pattern: ROUTES.frontend.admin_recruitment_applicant,
urlParams: {
applicationID: user.top_application.id,
},
})}
className={styles.text}
>
{`${user.first_name} ${user.last_name}`}
</Link>
),
},
user.email,
user.phone_number,
Expand Down

0 comments on commit df56cb5

Please sign in to comment.