From 4f8c28257207088676d7ed25057f1bf62432a80d Mon Sep 17 00:00:00 2001 From: SEAN Date: Fri, 27 Feb 2026 14:15:36 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20TypeScript=20=EB=B9=8C=EB=93=9C=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=EC=88=98=EC=A0=95=20(#17)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - DashboardPage: 미사용 변수 i 제거 (TS6133) - PlatformStatusIndicator: CredentialStatus 타입 내로잉 적용 (TS7053) Closes #17 --- react/src/features/dashboard/pages/DashboardPage.tsx | 2 +- .../src/features/service/components/PlatformStatusIndicator.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/react/src/features/dashboard/pages/DashboardPage.tsx b/react/src/features/dashboard/pages/DashboardPage.tsx index 843cece..10a2c01 100644 --- a/react/src/features/dashboard/pages/DashboardPage.tsx +++ b/react/src/features/dashboard/pages/DashboardPage.tsx @@ -77,7 +77,7 @@ function randomMessages() { const statuses = ["완료", "완료", "완료", "실패", "진행", "예약"] as const; const hours = ["09:00", "09:15", "10:30", "11:00", "14:00", "15:30", "18:00", "20:00"]; - return Array.from({ length: 5 }, (_, i) => ({ + return Array.from({ length: 5 }, () => ({ template: templates[rand(0, templates.length - 1)], targetCount: fmt(rand(1, 50000)), status: statuses[rand(0, statuses.length - 1)], diff --git a/react/src/features/service/components/PlatformStatusIndicator.tsx b/react/src/features/service/components/PlatformStatusIndicator.tsx index 501de55..db296a4 100644 --- a/react/src/features/service/components/PlatformStatusIndicator.tsx +++ b/react/src/features/service/components/PlatformStatusIndicator.tsx @@ -67,7 +67,7 @@ export default function PlatformStatusIndicator({ )} - {hasIssue && credential.credentialStatus && ( + {hasIssue && (credential.credentialStatus === "warn" || credential.credentialStatus === "error") && ( <>