mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 11:01:45 +00:00
Arquivos de queries, helpers e controllers dispersos na raiz de dashboard/ foram movidos para subdiretórios temáticos (bills/, invoices/, notes/, notifications/, overview/, payments/, goals-progress/, categories/). ~25 widgets monolíticos obsoletos removidos em favor de nova arquitetura baseada em widget-registry com components/widgets/. Novos componentes: category-breakdown-chart/list, goals-progress-item, percentage-change-indicator. Imports atualizados em fetch-dashboard-data e transaction-filters limpos. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
833 B
TypeScript
30 lines
833 B
TypeScript
import { RiBarcodeFill } from "@remixicon/react";
|
|
import type { DashboardBill } from "@/features/dashboard/bills/bills-queries";
|
|
import { WidgetEmptyState } from "@/shared/components/widget-empty-state";
|
|
import { BillListItem } from "./bill-list-item";
|
|
|
|
type BillsListProps = {
|
|
bills: DashboardBill[];
|
|
onPay: (billId: string) => void;
|
|
};
|
|
|
|
export function BillsList({ bills, onPay }: BillsListProps) {
|
|
if (bills.length === 0) {
|
|
return (
|
|
<WidgetEmptyState
|
|
icon={<RiBarcodeFill className="size-6 text-muted-foreground" />}
|
|
title="Nenhum boleto cadastrado para o período selecionado"
|
|
description="Cadastre boletos para monitorar os pagamentos aqui."
|
|
/>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<ul className="flex flex-col">
|
|
{bills.map((bill) => (
|
|
<BillListItem key={bill.id} bill={bill} onPay={onPay} />
|
|
))}
|
|
</ul>
|
|
);
|
|
}
|