-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skeleten for show unprocessed application (#1313)
* Skeleten for show unprocessed application * Removed unneccessary line changes * Fix broken code * Fixed breadcrumb * Added count of applicants
- Loading branch information
Showing
8 changed files
with
101 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
.../PagesAdmin/RecruitmentUnprocessedApplicantsPage/RecruitmentUnprocessedApplicantsPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import { useTitle } from '~/hooks'; | ||
import { AdminPageLayout } from '../AdminPageLayout/AdminPageLayout'; | ||
import { KEY } from '~/i18n/constants'; | ||
import { Button, Table } from '~/Components'; | ||
import { reverse } from '~/named-urls'; | ||
import { ROUTES } from '~/routes'; | ||
import { useParams } from 'react-router-dom'; | ||
import { useEffect } from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
const data = [ | ||
['John Doe', 'High', '[email protected]', 'Frontend Developer', 'vil ha'], | ||
['Jane Smith', 'Medium', '[email protected]', 'Backend Developer', 'reservert'], | ||
['Michael Johnson', 'Low', '[email protected]', 'Data Scientist', 'automatisk avslag'], | ||
['Emily Davis', 'High', '[email protected]', 'Full Stack Developer', 'ikke satt'], | ||
['John Doe', 'Medium', '[email protected]', 'Project Manager', 'vil ha'], | ||
['Chris Brown', 'Low', '[email protected]', 'QA Engineer', 'reservert'], | ||
]; | ||
|
||
export function RecruitmentUnprocessedApplicantsPage() { | ||
const { t } = useTranslation(); | ||
const { recruitmentId } = useParams(); | ||
const title = t(KEY.recruitment_unprocessed_applicants); | ||
useTitle(title); | ||
useEffect(() => {}, [t]); | ||
|
||
// Count the total number of rows | ||
const totalRows = data.length; | ||
|
||
const tableColumns = [ | ||
{ content: t(KEY.recruitment_applicant), sortable: true, hideSortButton: false }, | ||
{ content: t(KEY.recruitment_priority), sortable: true, hideSortButton: false }, | ||
{ content: t(KEY.common_email), sortable: true, hideSortButton: false }, | ||
{ content: t(KEY.recruitment_application), sortable: true, hideSortButton: false }, | ||
{ content: t(KEY.recruitment_recruiter_status), sortable: true, hideSortButton: false }, | ||
]; | ||
|
||
const header = ( | ||
<> | ||
<Button | ||
theme="success" | ||
rounded={true} | ||
link={reverse({ | ||
pattern: ROUTES.frontend.admin_recruitment_gang_overview, | ||
urlParams: { recruitmentId: recruitmentId }, | ||
})} | ||
> | ||
{t(KEY.common_go_back)} | ||
</Button> | ||
{/* Display the total number of applicants */} | ||
<p> | ||
{t(KEY.recruitment_applicants)}: {totalRows} | ||
</p> | ||
</> | ||
); | ||
|
||
return ( | ||
<AdminPageLayout title={title} header={header}> | ||
<Table columns={tableColumns} data={data} /> | ||
</AdminPageLayout> | ||
); | ||
} |
1 change: 1 addition & 0 deletions
1
frontend/src/PagesAdmin/RecruitmentUnprocessedApplicantsPage/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { RecruitmentUnprocessedApplicantsPage } from './RecruitmentUnprocessedApplicantsPage'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters