From d84c8b2c3462d780c8473f80dc05c4b5d6b76c84 Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Wed, 19 Aug 2026 11:09:09 +0900 Subject: [PATCH] =?UTF-8?q?260819=5F01=5FENH:=20=EC=9E=90=EC=B2=B4?= =?UTF-8?q?=EB=B3=B4=EA=B3=A0=EC=84=9C=20=EC=97=85=EB=A1=9C=EB=93=9C=20?= =?UTF-8?q?=EB=A7=89=ED=98=80=EC=9E=88=EB=8D=98=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dialog/PerformanceDetailDialog.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/dialog/PerformanceDetailDialog.tsx b/src/components/dialog/PerformanceDetailDialog.tsx index 6a91935..3097ace 100644 --- a/src/components/dialog/PerformanceDetailDialog.tsx +++ b/src/components/dialog/PerformanceDetailDialog.tsx @@ -51,6 +51,7 @@ import { openWrittenReviewWindow, } from "@/lib/gwcf/file"; import {PERFORMANCE_FIELD_LABELS, USER_FIELD_LABELS} from "@/lib/gwcf/field-labels"; +import {useAuth} from "@/hooks/useAuth"; type CodeMap = Partial>; type PerformanceDetail = PerformanceCompact["performanceDetail"]; @@ -232,9 +233,11 @@ function EvidenceZipButton({performanceId, userId}: {performanceId: number; user function LocalGovernmentReviewRow({ performance, codes, + loginUserId, }: { performance: PerformanceFull | PerformanceCompact; codes: CodeMap; + loginUserId: string | undefined; }) { const reviewType = LOCAL_GOVERNMENT_REVIEW_TYPE; const fallbackReviewRow = getReviewByType(performance as PerformanceFull, reviewType); @@ -257,7 +260,7 @@ function LocalGovernmentReviewRow({ void; onDelete?: (performanceId: number) => void; }>) { + const {auth} = useAuth(); const [draft, setDraft] = useState(null); const [isEditing, setIsEditing] = useState(false); const {data: monitoringUsers = []} = useUsersQuery(ROLE.MONITORING, open); @@ -452,6 +456,8 @@ export function PerformanceDetailDialog({ [writtenUsers] ); + const userId = auth.user?.userId; + useEffect(() => { if (!performance) { setDraft(null); @@ -635,7 +641,7 @@ export function PerformanceDetailDialog({ - +