diff --git a/docs/app/data/fixtures.tsx b/docs/app/data/fixtures.tsx index 040bb68ea7..b3738e5b8c 100644 --- a/docs/app/data/fixtures.tsx +++ b/docs/app/data/fixtures.tsx @@ -473,6 +473,14 @@ export const USE_SCROLL_CONFIG_DATA: CellData[][] = [ ), ] +export const USE_RESIZE_CONFIG_DATA: CellData[][] = [ + ['container', 'React.MutableRefObject', null], + ...DEFAULT_CONFIG_DATA.filter( + row => + row[0] !== 'from' && typeof row[0] === 'object' && row[0]?.label !== 'to' + ), +] + export const USESPRINGVALUE_CONFIG_DATA: CellData[][] = [ [ { diff --git a/docs/app/routes/docs/utilities/use-resize.mdx b/docs/app/routes/docs/utilities/use-resize.mdx index 8acf97220d..23c6b6e7b7 100644 --- a/docs/app/routes/docs/utilities/use-resize.mdx +++ b/docs/app/routes/docs/utilities/use-resize.mdx @@ -33,9 +33,9 @@ function MyComponent() { ## Reference import { TablesConfiguration } from '~/components/Tables/TablesConfig' -import { USE_SCROLL_CONFIG_DATA } from '~/data/fixtures' +import { USE_RESIZE_CONFIG_DATA } from '~/data/fixtures' - + ## Typescript diff --git a/packages/core/src/hooks/useResize.ts b/packages/core/src/hooks/useResize.ts index 2c696a50df..c5b4c2c06b 100644 --- a/packages/core/src/hooks/useResize.ts +++ b/packages/core/src/hooks/useResize.ts @@ -6,7 +6,7 @@ import { SpringProps, SpringValues } from '../types' import { useSpring } from './useSpring' export interface UseResizeOptions extends Omit { - container?: MutableRefObject + container?: MutableRefObject } /**