Skip to content

Commit

Permalink
Add breadcrumb to RecruitmentUsersWithoutThreeInterviewCriteriaPage a…
Browse files Browse the repository at this point in the history
…nd RecruitmentUsersWithoutInterviewGangPage (#1669)

* Add crumb to RecruitmentUsersWithoutThreeInterviewCriteriaPage

* Fix breadcrumb of RecruitmentUsersWithoutInterviewGangPage by removing extra <Route>

* Delete wrong code from merge
  • Loading branch information
johannegg authored and amaliejvik committed Feb 13, 2025
1 parent 8ac2a33 commit 0e211b0
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions frontend/src/router/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -383,14 +383,6 @@ export const router = createBrowserRouter(
}
handle={{ crumb: ({ pathname }: UIMatch) => <Link url={pathname}>{t(KEY.common_create)}</Link> }}
/>
<Route
path={ROUTES.frontend.admin_recruitment_gang_users_without_interview}
element={<RecruitmentUsersWithoutInterviewGangPage />}
/>
<Route
path={ROUTES.frontend.admin_recruitment_users_three_interview_criteria}
element={<RecruitmentUsersWithoutThreeInterviewCriteriaPage />}
/>
<Route
path={ROUTES.frontend.admin_recruitment_applicant}
element={
Expand Down Expand Up @@ -497,7 +489,6 @@ export const router = createBrowserRouter(
),
}}
/>

<Route
path={ROUTES.frontend.admin_recruitment_users_without_interview}
element={<RecruitmentUsersWithoutInterviewGangPage />}
Expand All @@ -508,6 +499,16 @@ export const router = createBrowserRouter(
),
}}
/>
<Route
path={ROUTES.frontend.admin_recruitment_users_three_interview_criteria}
element={<RecruitmentUsersWithoutThreeInterviewCriteriaPage />}
loader={recruitmentLoader}
handle={{
crumb: ({ pathname }: UIMatch) => (
<Link url={pathname}>{t(KEY.recruitment_applet_three_interview_title)}</Link>
),
}}
/>
<Route
path={ROUTES.frontend.admin_recruitment_room_overview}
element={<RoomAdminPage />}
Expand Down

0 comments on commit 0e211b0

Please sign in to comment.