mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
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:
parent
5d8c853fab
commit
1612df18a6
1 changed files with 1 additions and 3 deletions
|
|
@ -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 = () => {};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue