Skip to content

Commit

Permalink
refactor: rename candidate callout to key information given that it n…
Browse files Browse the repository at this point in the history
…ow uses a card
  • Loading branch information
zaki-amin committed Jan 28, 2025
1 parent c804ba9 commit abd4d30
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions components/dialog/AdminScoringDialog.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -47,7 +47,7 @@ const AdminScoringForm: FC<AdminScoringFormProps> = ({ data, readOnly }) => {
</Text>
)}

<CandidateCallout
<KeyCandidateInformation
firstName={applicant.firstName}
surname={applicant.surname}
ucasNumber={applicant.ucasNumber}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { shortenEmail } from '@/lib/utils'
import { Card, DataList, Flex, Text } from '@radix-ui/themes'
import React, { FC } from 'react'

interface CandidateCalloutProps {
interface KeyCandidateInformation {
firstName: string
surname: string
ucasNumber: string
Expand All @@ -13,11 +13,11 @@ interface CandidateCalloutProps {
academicComments?: string | null
}

const CandidateCallout: FC<CandidateCalloutProps> = ({
const KeyCandidateInformation: FC<KeyCandidateInformation> = ({
firstName,
surname,
ucasNumber,
showExtraInformation = false,
showExtraInformation,
reviewer,
overallScore,
reviewerPercentile,
Expand Down Expand Up @@ -69,4 +69,4 @@ const ListItem: FC<ListItemProps> = ({ label, value }) => {
)
}

export default CandidateCallout
export default KeyCandidateInformation
4 changes: 2 additions & 2 deletions components/dialog/ReviewerScoringDialog.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -50,7 +50,7 @@ const ReviewerScoringForm: FC<ReviewerScoringFormProps> = ({ data, readOnly }) =
</Text>
)}

<CandidateCallout
<KeyCandidateInformation
firstName={applicant.firstName}
surname={applicant.surname}
ucasNumber={applicant.ucasNumber}
Expand Down
4 changes: 2 additions & 2 deletions components/dialog/UgTutorDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use client'

import AllComments from '@/components/dialog/AllComments'
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'
Expand Down Expand Up @@ -95,7 +95,7 @@ const UgTutorForm: FC<UgTutorFormProps> = ({
</Text>
)}

<CandidateCallout
<KeyCandidateInformation
firstName={applicant.firstName}
surname={applicant.surname}
ucasNumber={applicant.ucasNumber}
Expand Down

0 comments on commit abd4d30

Please sign in to comment.