diff --git a/src/CSSMotion.tsx b/src/CSSMotion.tsx index 84fd72b..07745fd 100644 --- a/src/CSSMotion.tsx +++ b/src/CSSMotion.tsx @@ -26,8 +26,6 @@ export type CSSMotionConfig = | boolean | { transitionSupport?: boolean; - /** @deprecated, no need this anymore since `rc-motion` only support latest react */ - forwardRef?: boolean; }; export type MotionName = diff --git a/tests/CSSMotion.spec.tsx b/tests/CSSMotion.spec.tsx index 6176179..570a2ba 100644 --- a/tests/CSSMotion.spec.tsx +++ b/tests/CSSMotion.spec.tsx @@ -16,7 +16,6 @@ import RefCSSMotion, { describe('CSSMotion', () => { const CSSMotion = genCSSMotion({ transitionSupport: true, - forwardRef: false, }); beforeEach(() => { @@ -613,7 +612,6 @@ describe('CSSMotion', () => { it('no transition', () => { const NoCSSTransition = genCSSMotion({ transitionSupport: false, - forwardRef: false, }); const { container } = render( diff --git a/tests/CSSMotionList.spec.tsx b/tests/CSSMotionList.spec.tsx index 10b0b9d..5df9782 100644 --- a/tests/CSSMotionList.spec.tsx +++ b/tests/CSSMotionList.spec.tsx @@ -87,7 +87,6 @@ describe('CSSMotionList', () => { it('with motion support', () => { const CSSMotion = genCSSMotion({ transitionSupport: true, - forwardRef: false, }); const CSSMotionList = genCSSMotionList(true, CSSMotion); testMotion(CSSMotionList, container => { diff --git a/tests/StrictMode.spec.tsx b/tests/StrictMode.spec.tsx index 2891a8b..820c0c9 100644 --- a/tests/StrictMode.spec.tsx +++ b/tests/StrictMode.spec.tsx @@ -6,10 +6,7 @@ import { fireEvent, render } from '@testing-library/react'; import classNames from 'classnames'; import React from 'react'; import { act } from 'react-dom/test-utils'; -// import type { CSSMotionProps } from '../src/CSSMotion'; import { genCSSMotion, type CSSMotionRef } from '../src/CSSMotion'; -// import RefCSSMotion, { genCSSMotion } from '../src/CSSMotion'; -// import ReactDOM from 'react-dom'; describe('StrictMode', () => { const CSSMotion = genCSSMotion({