fix(cache): resolve code review issues (namespace, unused props)
This commit is contained in:
@@ -13,7 +13,6 @@ interface CachePerformanceProps {
|
||||
loading?: boolean;
|
||||
error?: string | null;
|
||||
onRetry?: () => void;
|
||||
stats?: null;
|
||||
}
|
||||
|
||||
function HitRateBar({ hitRate, label }: { hitRate: number; label: string }) {
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user