feat(candidate): add the candidate home, results and result history screens

This commit is contained in:
shira committed 2026-10-09 01:24:45 +03:00
1 parent 8277133712
commit 4761508f13
52 files changed
+5334 -81

No files matched your search

@@ -1,13 +1,9 @@
import { Navigate } from "react-router-dom";
import { getOnboardingDestination } from "../../entities/session";
import { PlaceholderPage } from "../../pages/placeholder";
import { useGetCurrentSession } from "../../shared/api/endpoints/identity/identity";
import { CandidateHomePage } from "../../pages/candidate-home";
/**
* The candidate home opens at every saved onboarding step: it shows the saved
* step and leads to the next action itself instead of redirecting away.
*/
export function CandidateHomeRoute() {
const session = useGetCurrentSession();
if (!session.data) return <PlaceholderPage screen="candidateHome" />;
if (session.data.account.onboarding_step !== "completed") {
return <Navigate to={getOnboardingDestination(session.data.account)} replace />;
}
return <PlaceholderPage screen="candidateHome" />;
return <CandidateHomePage />;
}