Progress Cards for Top Payees

This commit is contained in:
2026-04-25 12:41:05 +05:30
parent 71afc157ff
commit 89ad8e376e
8 changed files with 59 additions and 18 deletions

View File

@@ -3,7 +3,7 @@ import { ProgressCardProps } from "./ProgressCard.models";
import { getPercentage, parseSummary } from "./ProgressCard.utils";
export default function ProgressCard(props: ProgressCardProps) {
const { progressAmount, totalAmount, summary } = props;
const { progressAmount, totalAmount, summary, compact = false } = props;
const percentage = getPercentage(progressAmount, totalAmount);
const { prefixAmount, suffixString } = parseSummary(
@@ -18,6 +18,7 @@ export default function ProgressCard(props: ProgressCardProps) {
percentage={percentage}
prefixAmount={prefixAmount}
suffixString={suffixString}
compact={compact}
/>
);
}