diff --git a/front_end/src/Apps/Payroll.jsx b/front_end/src/Apps/Payroll.jsx index 565eaaf2..240cd7a2 100644 --- a/front_end/src/Apps/Payroll.jsx +++ b/front_end/src/Apps/Payroll.jsx @@ -1,4 +1,5 @@ import { useEffect, useReducer, useState, useMemo } from "react"; +import { useParams } from "react-router-dom"; import EditPayroll from "../Components/EditPayroll"; import * as api from "../Components/EditPayroll/api"; @@ -19,10 +20,13 @@ export default function Payroll() { ); const [vacancies, dispatchVacancies] = useReducer( vacanciesReducer, - initialPayrollState + initialVacanciesState ); const [saveSuccess, setSaveSuccess] = useState(false); + const { cost_centre_code, financial_year } = useParams(); + const addVacancyUrl = `edit/${cost_centre_code}/${financial_year}/vacancies/create`; + useEffect(() => { const savedSuccessFlag = localStorage.getItem("saveSuccess"); if (savedSuccessFlag === "true") { @@ -98,6 +102,9 @@ export default function Payroll() { RowComponent={EmployeeRow} />
Recruitment Type | -Grade | -Programme | -Budget Type | -Appointee Name | -Hiring Manager | -HR Ref | -Recruitment Stage | -
---|---|---|---|---|---|---|---|
{{ vacancy.get_recruitment_type_display }} | -{{ vacancy.grade }} | -{{ vacancy.programme_code.programme_code }} | -{{ vacancy.programme_code.budget_type }} | -{{ vacancy.appointee_name|default:"" }} | -{{ vacancy.hiring_manager|default:"" }} | -{{ vacancy.hr_ref|default:"" }} | -{{ vacancy.get_recruitment_stage_display }} | - -