26 lines
879 B
JavaScript
26 lines
879 B
JavaScript
/* Full-page candidate profile — /candidate/:userId.
|
|
|
|
The modal outgrew its box: ten tabs of forms, rating tables and audit trail
|
|
need a real page with a real URL (shareable, refresh-safe). This is a thin
|
|
shell over CandidateProfile in `variant="page"` mode: the identity shell
|
|
carries only the userId and the live detail query fills everything else.
|
|
Opened from Candidates, Talent Pool and the Pipeline board. */
|
|
|
|
import { useNavigate, useParams } from 'react-router-dom'
|
|
|
|
import CandidateProfile from './CandidateProfile'
|
|
|
|
export default function CandidatePage() {
|
|
const { userId } = useParams()
|
|
const navigate = useNavigate()
|
|
|
|
return (
|
|
<CandidateProfile
|
|
key={userId}
|
|
variant="page"
|
|
candidate={{ id: userId, userId, name: '' }}
|
|
onClose={() => (window.history.length > 1 ? navigate(-1) : navigate('/candidates'))}
|
|
/>
|
|
)
|
|
}
|