From b912116a2fd37e8db69c7f8ee56aeb4e0078a5ff Mon Sep 17 00:00:00 2001 From: oyi77 Date: Wed, 1 Apr 2026 09:35:19 +0700 Subject: [PATCH] fix(cache): resolve code review issues (namespace, unused props) --- .../dashboard/cache/components/CachePerformance.tsx | 1 - src/app/(dashboard)/dashboard/cache/components/MemoryCards.tsx | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/(dashboard)/dashboard/cache/components/CachePerformance.tsx b/src/app/(dashboard)/dashboard/cache/components/CachePerformance.tsx index a5ca69c1..899173f4 100644 --- a/src/app/(dashboard)/dashboard/cache/components/CachePerformance.tsx +++ b/src/app/(dashboard)/dashboard/cache/components/CachePerformance.tsx @@ -13,7 +13,6 @@ interface CachePerformanceProps { loading?: boolean; error?: string | null; onRetry?: () => void; - stats?: null; } function HitRateBar({ hitRate, label }: { hitRate: number; label: string }) { diff --git a/src/app/(dashboard)/dashboard/cache/components/MemoryCards.tsx b/src/app/(dashboard)/dashboard/cache/components/MemoryCards.tsx index e0f37f3a..5bbae372 100644 --- a/src/app/(dashboard)/dashboard/cache/components/MemoryCards.tsx +++ b/src/app/(dashboard)/dashboard/cache/components/MemoryCards.tsx @@ -14,7 +14,6 @@ interface MemoryCardsProps { loading?: boolean; error?: string | null; onRetry?: () => void; - stats?: null | unknown; } // ─── Internal StatCard ──────────────────────────────────────────────────────── @@ -70,7 +69,7 @@ export default function MemoryCards({ error = null, onRetry, }: MemoryCardsProps) { - const t = useTranslations("Cache"); + const t = useTranslations("cache"); if (loading) { return (