+
- {c.name}
+ {c.name}
{c.tin &&
{c.tin}}
@@ -126,8 +125,8 @@ export function useProformasGridColumns(
),
cell: ({ row }) =>
{row.original.series}
,
enableSorting: false,
- size: 120,
- minSize: 100,
+ size: 64,
+ minSize: 64,
meta: {
title: t("pages.proformas.list.grid_columns.series"),
},
@@ -166,9 +165,8 @@ export function useProformasGridColumns(
{formatDate(row.original.invoice_date)}
),
- enableSorting: false,
- size: 140,
- minSize: 120,
+ size: 96,
+ minSize: 96,
meta: {
title: t("pages.proformas.list.grid_columns.invoice_date"),
},
@@ -188,9 +186,8 @@ export function useProformasGridColumns(
{formatDate(row.original.operation_date)}
),
- enableSorting: false,
- size: 140,
- minSize: 120,
+ size: 96,
+ minSize: 96,
meta: {
title: t("pages.proformas.list.grid_columns.operation_date"),
},
@@ -291,7 +288,13 @@ export function useProformasGridColumns(
// ─────────────────────────────
{
id: "actions",
- header: () =>
{t("common.actions")},
+ header: ({ column }) => (
+
+ ),
enableSorting: false,
enableHiding: false,
size: 110,
@@ -381,7 +384,7 @@ export function useProformasGridColumns(
{/* Menú demás acciones */}
{/** biome-ignore lint/suspicious/noSelfCompare:
*/}
- {false === false && (
+ {false !== false && (
- )
+ );
}
diff --git a/packages/rdx-ui/src/components/datatable/data-table-pagination.tsx b/packages/rdx-ui/src/components/datatable/data-table-pagination.tsx
index 6975f66a..552cec27 100644
--- a/packages/rdx-ui/src/components/datatable/data-table-pagination.tsx
+++ b/packages/rdx-ui/src/components/datatable/data-table-pagination.tsx
@@ -1,23 +1,26 @@
-import { Table } from "@tanstack/react-table";
import {
- ChevronLeftIcon,
- ChevronRightIcon,
- ChevronsLeftIcon,
- ChevronsRightIcon
-} from "lucide-react";
-
-import {
- Pagination, PaginationContent,
- PaginationItem, PaginationLink,
+ Pagination,
+ PaginationContent,
+ PaginationItem,
+ PaginationLink,
Select,
SelectContent,
SelectItem,
SelectTrigger,
- SelectValue
-} from '@repo/shadcn-ui/components';
-import { cn } from '@repo/shadcn-ui/lib/utils';
-import { useTranslation } from '../../locales/i18n.ts';
-import { DataTableMeta } from './data-table.tsx';
+ SelectValue,
+} from "@repo/shadcn-ui/components";
+import { cn } from "@repo/shadcn-ui/lib/utils";
+import type { Table } from "@tanstack/react-table";
+import {
+ ChevronLeftIcon,
+ ChevronRightIcon,
+ ChevronsLeftIcon,
+ ChevronsRightIcon,
+} from "lucide-react";
+
+import { useTranslation } from "../../locales/i18n.ts";
+
+import type { DataTableMeta } from "./data-table.tsx";
interface DataTablePaginationProps
{
table: Table;
@@ -28,7 +31,11 @@ interface DataTablePaginationProps {
}
export function DataTablePagination({
- table, onPageChange, onPageSizeChange, className }: DataTablePaginationProps) {
+ table,
+ onPageChange,
+ onPageSizeChange,
+ className,
+}: DataTablePaginationProps) {
const { t } = useTranslation();
const { pageIndex: rawIndex, pageSize: rawSize } = table.getState().pagination;
@@ -50,10 +57,10 @@ export function DataTablePagination({
const notify = (next: Partial<{ pageIndex: number; pageSize: number }>) =>
table.options.onPaginationChange?.({ pageIndex, pageSize, ...next });
- const gotoPage = (index: number) => onPageChange ? onPageChange(index) : notify({ pageIndex: index });
- const handlePageSizeChange = (size: string) => onPageSizeChange ?
- onPageSizeChange(Number(size)) :
- notify({ pageSize: Number(size) });
+ const gotoPage = (index: number) =>
+ onPageChange ? onPageChange(index) : notify({ pageIndex: index });
+ const handlePageSizeChange = (size: string) =>
+ onPageSizeChange ? onPageSizeChange(Number(size)) : notify({ pageSize: Number(size) });
const gotoPreviousPage = () => gotoPage(pageIndex - 1);
const gotoNextPage = () => gotoPage(pageIndex + 1);
@@ -79,7 +86,7 @@ export function DataTablePagination({
{t("components.datatable.pagination.rows_per_page")}
-
@@ -102,12 +108,12 @@ export function DataTablePagination