mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-30 15:18:50 +01:00
refactor: reorganize imports in DataTable components and update index exports
This commit is contained in:
parent
905cef1ac2
commit
78a0dd2884
4 changed files with 6 additions and 4 deletions
|
|
@ -2,7 +2,9 @@ import { memo } from 'react';
|
|||
import { flexRender } from '@tanstack/react-table';
|
||||
import type { Row, ColumnDef } from '@tanstack/react-table';
|
||||
import type { TableColumn } from './DataTable.types';
|
||||
import { Checkbox, TableCell, TableRow, Skeleton } from '~/components';
|
||||
import { TableCell, TableRow } from '../Table';
|
||||
import { Checkbox } from '../Checkbox';
|
||||
import { Skeleton } from '../Skeleton';
|
||||
import { cn } from '~/utils';
|
||||
|
||||
export const SelectionCheckbox = memo(
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import { memo } from 'react';
|
||||
import { startTransition } from 'react';
|
||||
import type { DataTableSearchProps } from './DataTable.types';
|
||||
import { Input } from '~/components';
|
||||
import { useLocalize } from '~/hooks';
|
||||
import { Input } from '../Input';
|
||||
import { cn } from '~/utils';
|
||||
|
||||
export const DataTableSearch = memo(
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ export * from './AlertDialog';
|
|||
export * from './Breadcrumb';
|
||||
export * from './Button';
|
||||
export * from './Checkbox';
|
||||
export * from './DataTable/DataTable.types';
|
||||
|
||||
export * from './Dialog';
|
||||
export * from './DropdownMenu';
|
||||
|
|
@ -46,7 +45,6 @@ export { default as DropdownPopup } from './DropdownPopup';
|
|||
export { default as DelayedRender } from './DelayedRender';
|
||||
export { default as ThemeSelector } from './ThemeSelector';
|
||||
export { default as InfoHoverCard } from './InfoHoverCard';
|
||||
export { default as DataTable } from './DataTable/DataTable';
|
||||
export { default as CheckboxButton } from './CheckboxButton';
|
||||
export { default as DialogTemplate } from './DialogTemplate';
|
||||
export { default as SelectDropDown } from './SelectDropDown';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
// Components
|
||||
export * from './components';
|
||||
export { default as DataTable } from './components/DataTable/DataTable';
|
||||
export * from './components/DataTable/DataTable.types';
|
||||
|
||||
// Hooks
|
||||
export * from './hooks';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue