diff --git a/src/features/budgets/components/budget-card.tsx b/src/features/budgets/components/budget-card.tsx index 2e56ad4..e05dc88 100644 --- a/src/features/budgets/components/budget-card.tsx +++ b/src/features/budgets/components/budget-card.tsx @@ -90,6 +90,7 @@ export function BudgetCard({ budget, onEdit, onRemove }: BudgetCardProps) { diff --git a/src/features/cards/components/card-item.tsx b/src/features/cards/components/card-item.tsx index cb770ac..5fe715c 100644 --- a/src/features/cards/components/card-item.tsx +++ b/src/features/cards/components/card-item.tsx @@ -69,6 +69,7 @@ export function CardItem({ const usagePercent = limit > 0 ? Math.min(Math.max((used / limit) * 100, 0), 100) : 0; + const exceeded = usagePercent >= 100; const logoPath = resolveLogoSrc(logo); const brandAsset = resolveCardBrandAsset(brand); @@ -194,7 +195,8 @@ export function CardItem({
diff --git a/src/shared/components/ui/progress.tsx b/src/shared/components/ui/progress.tsx index 6fb2cf8..465eb56 100644 --- a/src/shared/components/ui/progress.tsx +++ b/src/shared/components/ui/progress.tsx @@ -7,9 +7,12 @@ import { cn } from "@/shared/utils/ui"; function Progress({ className, + indicatorClassName, value, ...props -}: React.ComponentProps) { +}: React.ComponentProps & { + indicatorClassName?: string; +}) { return (