refactor: traduz dominio de payers no app

This commit is contained in:
Felipe Coutinho
2026-03-14 12:51:08 +00:00
parent 67ad4b9d02
commit 43b0f0c47e
31 changed files with 691 additions and 720 deletions

View File

@@ -11,18 +11,18 @@ import { CardContent } from "@/shared/components/ui/card";
import { Progress } from "@/shared/components/ui/progress";
import { WidgetEmptyState } from "@/shared/components/widget-empty-state";
import type {
PagadorBoletoItem,
PagadorPaymentStatusData,
PayerBoletoItem,
PayerPaymentStatusData,
} from "@/shared/lib/payers/details";
import { cn } from "@/shared/utils/ui";
// --- PagadorBoletoCard ---
// --- PayerBoletoCard ---
type PagadorBoletoCardProps = {
items: PagadorBoletoItem[];
items: PayerBoletoItem[];
};
export function PagadorBoletoCard({ items }: PagadorBoletoCardProps) {
export function PayerBoletoCard({ items }: PagadorBoletoCardProps) {
if (items.length === 0) {
return (
<CardContent className="px-0">
@@ -72,13 +72,13 @@ export function PagadorBoletoCard({ items }: PagadorBoletoCardProps) {
);
}
// --- PagadorPaymentStatusCard ---
// --- PayerPaymentStatusCard ---
type PagadorPaymentStatusCardProps = {
data: PagadorPaymentStatusData;
data: PayerPaymentStatusData;
};
export function PagadorPaymentStatusCard({
export function PayerPaymentStatusCard({
data,
}: PagadorPaymentStatusCardProps) {
const { paidAmount, paidCount, pendingAmount, pendingCount, totalAmount } =