From 6afee0a9763687d96c941da29a76f17d2608ac67 Mon Sep 17 00:00:00 2001 From: Galindo97 Date: Wed, 4 Mar 2026 15:49:45 -0700 Subject: [PATCH] feat: introduce `compact` prop to data table component and shorten "Actualizar" button label. --- .../src/lib/components/dashboard/invoices/data-table.svelte | 4 +++- frontend/src/routes/dashboard/invoices/+page.svelte | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/dashboard/invoices/data-table.svelte b/frontend/src/lib/components/dashboard/invoices/data-table.svelte index 998c3994..cb2c4dbc 100644 --- a/frontend/src/lib/components/dashboard/invoices/data-table.svelte +++ b/frontend/src/lib/components/dashboard/invoices/data-table.svelte @@ -13,6 +13,7 @@ // Props para selección selectedIds?: number[]; onRowClick?: (row: TData) => void; + compact?: boolean; }; let { @@ -22,7 +23,8 @@ hasMore, loadMore, selectedIds = [], - onRowClick + onRowClick, + compact = false }: DataTableProps = $props(); const table = createSvelteTable({ diff --git a/frontend/src/routes/dashboard/invoices/+page.svelte b/frontend/src/routes/dashboard/invoices/+page.svelte index 836ec1f4..9e650cc3 100644 --- a/frontend/src/routes/dashboard/invoices/+page.svelte +++ b/frontend/src/routes/dashboard/invoices/+page.svelte @@ -972,7 +972,7 @@ onclick={() => handleUpdateStatus(true)} > - Actualizar Est + Actualizar