From abd4d30b5f0d18a056760389ab3bd28390d5bfbb Mon Sep 17 00:00:00 2001 From: Zaki Date: Tue, 28 Jan 2025 10:38:53 +0000 Subject: [PATCH] refactor: rename candidate callout to key information given that it now uses a card --- components/dialog/AdminScoringDialog.tsx | 4 ++-- .../{CandidateCallout.tsx => KeyCandidateInformation.tsx} | 8 ++++---- components/dialog/ReviewerScoringDialog.tsx | 4 ++-- components/dialog/UgTutorDialog.tsx | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) rename components/dialog/{CandidateCallout.tsx => KeyCandidateInformation.tsx} (91%) diff --git a/components/dialog/AdminScoringDialog.tsx b/components/dialog/AdminScoringDialog.tsx index ebf8c87..e84a625 100644 --- a/components/dialog/AdminScoringDialog.tsx +++ b/components/dialog/AdminScoringDialog.tsx @@ -1,8 +1,8 @@ 'use client' -import CandidateCallout from '@/components/dialog/CandidateCallout' import FormWrapper from '@/components/dialog/FormWrapper' import GenericDialog from '@/components/dialog/GenericDialog' +import KeyCandidateInformation from '@/components/dialog/KeyCandidateInformation' import TmuaGradeBox from '@/components/dialog/TmuaGradeBox' import Dropdown from '@/components/general/Dropdown' import LabelText from '@/components/general/LabelText' @@ -47,7 +47,7 @@ const AdminScoringForm: FC = ({ data, readOnly }) => { )} - = ({ +const KeyCandidateInformation: FC = ({ firstName, surname, ucasNumber, - showExtraInformation = false, + showExtraInformation, reviewer, overallScore, reviewerPercentile, @@ -69,4 +69,4 @@ const ListItem: FC = ({ label, value }) => { ) } -export default CandidateCallout +export default KeyCandidateInformation diff --git a/components/dialog/ReviewerScoringDialog.tsx b/components/dialog/ReviewerScoringDialog.tsx index e0199e2..6ad84a5 100644 --- a/components/dialog/ReviewerScoringDialog.tsx +++ b/components/dialog/ReviewerScoringDialog.tsx @@ -1,8 +1,8 @@ 'use client' -import CandidateCallout from '@/components/dialog/CandidateCallout' import FormWrapper from '@/components/dialog/FormWrapper' import GenericDialog from '@/components/dialog/GenericDialog' +import KeyCandidateInformation from '@/components/dialog/KeyCandidateInformation' import LabelText from '@/components/general/LabelText' import { reviewerAccess } from '@/lib/access' import { dateFormatting } from '@/lib/constants' @@ -50,7 +50,7 @@ const ReviewerScoringForm: FC = ({ data, readOnly }) = )} - = ({ )} -