From aaece9c75c6cb3798bcd52fc7cb67dc6fb6d13eb Mon Sep 17 00:00:00 2001 From: cindy-chaewon Date: Tue, 27 Jan 2026 15:58:33 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=84=9C=EB=A5=98=20=ED=8F=89=EA=B0=80?= =?UTF-8?q?=20=EC=86=8C=EC=88=AB=EC=A0=90=20=EB=B0=8F=20=EC=95=84=EC=9D=B4?= =?UTF-8?q?=EC=BD=98=20=EC=A1=B0=EA=B1=B4=20=EC=88=98=EC=A0=95=20(#205)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EvaluationDetailScoreList.tsx | 9 +++++---- .../EvaluationScoreCard/EvaluationScoreCard.tsx | 10 +++++++--- .../timetable/[tab]/[id]/ApplicantDetailClient.tsx | 1 + 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/apps/web/src/app/(main)/apply-management/[tab]/[id]/_components/EvaluationDetailScoreList/EvaluationDetailScoreList.tsx b/apps/web/src/app/(main)/apply-management/[tab]/[id]/_components/EvaluationDetailScoreList/EvaluationDetailScoreList.tsx index 06647083..d10f78e6 100644 --- a/apps/web/src/app/(main)/apply-management/[tab]/[id]/_components/EvaluationDetailScoreList/EvaluationDetailScoreList.tsx +++ b/apps/web/src/app/(main)/apply-management/[tab]/[id]/_components/EvaluationDetailScoreList/EvaluationDetailScoreList.tsx @@ -13,9 +13,10 @@ import { CompletedEvaluator } from '@web/constants/document'; type Props = { evaluationType: 'document' | 'interview'; completed: CompletedEvaluator[]; + showStatus?: boolean; }; -export function EvaluationDetailScoreList({ evaluationType, completed }: Props) { +export function EvaluationDetailScoreList({ evaluationType, completed, showStatus=true }: Props) { const router = useRouter(); const params = useParams<{ tab: string; id: string }>(); @@ -53,15 +54,15 @@ export function EvaluationDetailScoreList({ evaluationType, completed }: Props) {d.totalScore}점 - - + } + ))} diff --git a/apps/web/src/app/(main)/apply-management/[tab]/[id]/_components/EvaluationScoreCard/EvaluationScoreCard.tsx b/apps/web/src/app/(main)/apply-management/[tab]/[id]/_components/EvaluationScoreCard/EvaluationScoreCard.tsx index ea54063a..4d09cd58 100644 --- a/apps/web/src/app/(main)/apply-management/[tab]/[id]/_components/EvaluationScoreCard/EvaluationScoreCard.tsx +++ b/apps/web/src/app/(main)/apply-management/[tab]/[id]/_components/EvaluationScoreCard/EvaluationScoreCard.tsx @@ -20,6 +20,7 @@ interface EvaluationScoreCardProps { /** 상세 점수(완료자 리스트, totalScore 사용)용 */ completed: CompletedEvaluator[]; + showStatus? : boolean } export const EvaluationScoreCard = ({ @@ -27,16 +28,19 @@ export const EvaluationScoreCard = ({ evaluation, averageScore, completed, + showStatus = true + }: EvaluationScoreCardProps) => { const avgText = Number.isNaN(Number(averageScore)) ? String(averageScore) - : Number(averageScore); + : Number(Number(averageScore).toFixed(2)); //const sum = completed.reduce((acc, cur) => acc + (cur.score ?? 0), 0); //const average = //completed.length > 0 ? parseFloat((sum / completed.length).toFixed(1)) : 0; - const showStatus = evaluationType === 'interview'; + + //const showStatus = evaluationType === 'interview'; return (
@@ -51,7 +55,7 @@ export const EvaluationScoreCard = ({ {showStatus && } - +
); diff --git a/apps/web/src/app/(main)/interview-evaluation/timetable/[tab]/[id]/ApplicantDetailClient.tsx b/apps/web/src/app/(main)/interview-evaluation/timetable/[tab]/[id]/ApplicantDetailClient.tsx index df2d478e..78196791 100644 --- a/apps/web/src/app/(main)/interview-evaluation/timetable/[tab]/[id]/ApplicantDetailClient.tsx +++ b/apps/web/src/app/(main)/interview-evaluation/timetable/[tab]/[id]/ApplicantDetailClient.tsx @@ -309,6 +309,7 @@ export default function ApplicantDetailClient({ timeSlotId }: Props) { averageScore={application.documentAverageScore} evaluation={documentEvalStatus} completed={documentCompletedForCard} + showStatus={false} />