mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 11:01:45 +00:00
refactor(dashboard): reorganiza widgets e remove magnet-lines
This commit is contained in:
10
lib/dashboard/payment-breakdown-formatters.ts
Normal file
10
lib/dashboard/payment-breakdown-formatters.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { formatPercentage } from "@/lib/utils/percentage";
|
||||
|
||||
export const formatPaymentBreakdownPercentage = (value: number) =>
|
||||
formatPercentage(value, {
|
||||
minimumFractionDigits: 0,
|
||||
maximumFractionDigits: 1,
|
||||
});
|
||||
|
||||
export const formatPaymentBreakdownTransactionsLabel = (transactions: number) =>
|
||||
`${transactions} ${transactions === 1 ? "lançamento" : "lançamentos"}`;
|
||||
Reference in New Issue
Block a user