refactor(ui): reuse exported DEFAULT_PAGE_SIZE_OPTIONS in DataTable

Drop the duplicate local DEFAULT_PAGE_SIZE_OPTIONS in DataTable.tsx and import
the one already exported from DataTablePagination.tsx, removing the divergence
risk if the canonical list changes.
This commit is contained in:
Yuneng Jiang 2026-07-09 17:19:21 -07:00
parent 5d8c853fab
commit 1612df18a6
No known key found for this signature in database

View file

@ -36,11 +36,9 @@ import {
import { cn } from "@/lib/cva.config";
import "./columnMeta";
import { DataTablePagination } from "./DataTablePagination";
import { DataTablePagination, DEFAULT_PAGE_SIZE_OPTIONS } from "./DataTablePagination";
import type { ColumnPinnedSide, DataTableProps, DataTableSize, PaginationMode, SortingMode } from "./types";
const DEFAULT_PAGE_SIZE_OPTIONS = [25, 50, 100];
const INTERACTIVE_SELECTOR = "button, a, input, select, textarea, [role=checkbox], [data-row-click-exempt]";
const noop = () => {};