refactor: reorganize imports in DataTable components and update index exports
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user