-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathreviewRatingPage.tsx
71 lines (67 loc) · 1.71 KB
/
reviewRatingPage.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { ReviewStage } from "pages/review";
import { ReviewSplitPanelPage } from "./reviewSplitPanelPage";
import Button from "@components/common/Button";
interface Props {
studentName: string;
currentStage: ReviewStage;
currentStageRubric: JSX.Element;
currentStageAnswers: JSX.Element;
title: string;
resumeLink?: string;
scores: Map<ReviewStage, number>;
contextConsumer: JSX.Element;
application: ApplicationDTO | undefined;
}
interface resumeProps {
resumeLink: string;
}
const ResumeLink: React.FC<resumeProps> = ({ resumeLink }) => {
return (
<div className="flex flex-col gap-8">
<Button
className="mr-2 justify-self-end"
size="sm"
variant="secondary"
href={resumeLink}
>
<div className="flex justify-center items-center gap-2">
<img className="stroke-3" src={"common/resume.svg"} alt="" /> View
Candidate Resume
</div>
</Button>
</div>
);
};
export const ReviewRatingPage: React.FC<Props> = ({
studentName,
currentStage,
currentStageRubric,
currentStageAnswers,
title,
resumeLink,
scores,
contextConsumer,
application
}) => {
return (
<ReviewSplitPanelPage
studentName={studentName}
currentStage={currentStage}
leftTitle="Rubric"
leftContent={currentStageRubric}
rightTitle={title}
rightContent={
<div
className="flex flex-col gap-8"
style={{ alignItems: "flex-start" }}
>
{resumeLink ? <ResumeLink resumeLink={resumeLink as string} /> : null}
<div>{currentStageAnswers}</div>
<div>{contextConsumer}</div>
</div>
}
scores={scores}
application={application}
/>
);
};