forked from git.gladyson/openmonetis
refactor: remover código morto e exports não utilizados
Remove 6 componentes não utilizados (dashboard-grid, expenses/income by category widgets, installment analysis panels, fatura-warning-dialog). Remove funções/tipos não utilizados: successResult, generateApiToken, validateApiToken, getTodayUTC/Local, formatDateForDb, getDateInfo, calculatePercentage, roundToDecimals, safeParseInt/Float, isPeriodValid, getLastPeriods, normalizeWhitespace, formatCurrency wrapper, InboxItemInput, InboxBatchInput, ProcessInboxInput, DiscardInboxInput, LancamentosColumnId, 5 funções de anticipation-helpers. Redireciona imports de formatCurrency para lib/lancamentos/formatting-helpers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { currencyFormatter } from "@/lib/lancamentos/formatting-helpers";
|
||||
import { calculatePercentageChange } from "@/lib/utils/math";
|
||||
import { buildPeriodRange, MONTH_NAMES, parsePeriod } from "@/lib/utils/period";
|
||||
import type { DateRangeValidation } from "./types";
|
||||
@@ -95,17 +94,6 @@ export function validateDateRange(
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Formats a number as Brazilian currency (R$ X.XXX,XX)
|
||||
* Uses the shared currencyFormatter from formatting-helpers
|
||||
*
|
||||
* @param value - Numeric value to format
|
||||
* @returns Formatted currency string
|
||||
*/
|
||||
export function formatCurrency(value: number): string {
|
||||
return currencyFormatter.format(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Formats percentage change for display
|
||||
* Format: "±X%" or "±X.X%" (one decimal if < 10%)
|
||||
|
||||
Reference in New Issue
Block a user