diff --git a/packages/table/src/helpers/orderDataByOrderStruct.test.ts b/packages/table/src/helpers/orderDataByOrderStruct.test.ts index a24467fd3..f285f29db 100644 --- a/packages/table/src/helpers/orderDataByOrderStruct.test.ts +++ b/packages/table/src/helpers/orderDataByOrderStruct.test.ts @@ -1,4 +1,4 @@ -import { OrderColumn } from '../core/hooks/useOrderStruct'; +import { OrderColumn } from '../hooks/useOrderStruct'; import { Data } from '../declarations'; import { orderDataByOrderStruct } from './orderDataByOrderStruct'; diff --git a/packages/table/src/helpers/orderDataByOrderStruct.ts b/packages/table/src/helpers/orderDataByOrderStruct.ts index f8b473a58..da59b8433 100644 --- a/packages/table/src/helpers/orderDataByOrderStruct.ts +++ b/packages/table/src/helpers/orderDataByOrderStruct.ts @@ -1,4 +1,4 @@ -import { OrderColumn } from '../core/hooks/useOrderStruct'; +import { OrderColumn } from '../hooks/useOrderStruct'; const order = (orderStruct, a, b) => { for (const { sort, id } of orderStruct) { diff --git a/packages/table/src/hooks/index.ts b/packages/table/src/hooks/index.ts index 51e73c2eb..692d5d7d1 100644 --- a/packages/table/src/hooks/index.ts +++ b/packages/table/src/hooks/index.ts @@ -2,3 +2,4 @@ export * from './useWrapperObserver'; export * from './useTableScroll'; export * from './useTableVirtualizationColumn'; export * from './useTableVirtualizationRow'; +export * from './useOrderStruct'; diff --git a/packages/table/src/core/hooks/useOrderStruct.test.ts b/packages/table/src/hooks/useOrderStruct.test.ts similarity index 100% rename from packages/table/src/core/hooks/useOrderStruct.test.ts rename to packages/table/src/hooks/useOrderStruct.test.ts index 1d8071c10..a72ccc57e 100644 --- a/packages/table/src/core/hooks/useOrderStruct.test.ts +++ b/packages/table/src/hooks/useOrderStruct.test.ts @@ -1,5 +1,5 @@ -import { OrderColumn, useOrderStruct } from './useOrderStruct'; import { renderHook } from '@testing-library/react'; +import { OrderColumn, useOrderStruct } from './useOrderStruct'; describe('getOptionsFromData', () => { const cases: [string, OrderColumn[], string, OrderColumn[]][] = [ diff --git a/packages/table/src/core/hooks/useOrderStruct.ts b/packages/table/src/hooks/useOrderStruct.ts similarity index 100% rename from packages/table/src/core/hooks/useOrderStruct.ts rename to packages/table/src/hooks/useOrderStruct.ts diff --git a/packages/table/src/recipes/OrderTable.stories.tsx b/packages/table/src/recipes/OrderTable.stories.tsx index ed5247629..a514a6ab5 100644 --- a/packages/table/src/recipes/OrderTable.stories.tsx +++ b/packages/table/src/recipes/OrderTable.stories.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { Meta, StoryObj } from '@storybook/react'; import { BasicTable } from './BasicTable'; -import { useOrderStruct } from '../core/hooks/useOrderStruct'; +import { useOrderStruct } from '../hooks/useOrderStruct'; import { ColDef } from '../declarations'; import { orderDataByOrderStruct } from '../helpers/orderDataByOrderStruct';