feat(lancamentos): adiciona suporte a ícone de categoria
Adiciona campo categoriaIcon ao tipo LancamentoItem e seu mapeamento no page-helpers para exibir ícones das categorias na tabela. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,7 @@ export type LancamentoItem = {
|
||||
categoriaId: string | null;
|
||||
categoriaName: string | null;
|
||||
categoriaType: string | null;
|
||||
categoriaIcon: string | null;
|
||||
installmentCount: number | null;
|
||||
recurrenceCount: number | null;
|
||||
currentInstallment: number | null;
|
||||
|
||||
@@ -413,6 +413,7 @@ export const mapLancamentosData = (rows: LancamentoRowWithRelations[]) =>
|
||||
categoriaId: item.categoriaId ?? null,
|
||||
categoriaName: item.categoria?.name ?? null,
|
||||
categoriaType: item.categoria?.type ?? null,
|
||||
categoriaIcon: item.categoria?.icon ?? null,
|
||||
installmentCount: item.installmentCount ?? null,
|
||||
recurrenceCount: item.recurrenceCount ?? null,
|
||||
currentInstallment: item.currentInstallment ?? null,
|
||||
|
||||
Reference in New Issue
Block a user