Skip to content

Commit 95d08da

Browse files
authored
feat: retire deprecated api (#65)
* feat: retire deprecated api * chore: update test code
1 parent c5bfc19 commit 95d08da

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

src/CSSMotion.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ export type CSSMotionConfig =
2626
| boolean
2727
| {
2828
transitionSupport?: boolean;
29-
/** @deprecated, no need this anymore since `rc-motion` only support latest react */
30-
forwardRef?: boolean;
3129
};
3230

3331
export type MotionName =

tests/CSSMotion.spec.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import RefCSSMotion, {
1616
describe('CSSMotion', () => {
1717
const CSSMotion = genCSSMotion({
1818
transitionSupport: true,
19-
forwardRef: false,
2019
});
2120

2221
beforeEach(() => {
@@ -613,7 +612,6 @@ describe('CSSMotion', () => {
613612
it('no transition', () => {
614613
const NoCSSTransition = genCSSMotion({
615614
transitionSupport: false,
616-
forwardRef: false,
617615
});
618616

619617
const { container } = render(

tests/CSSMotionList.spec.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ describe('CSSMotionList', () => {
8787
it('with motion support', () => {
8888
const CSSMotion = genCSSMotion({
8989
transitionSupport: true,
90-
forwardRef: false,
9190
});
9291
const CSSMotionList = genCSSMotionList(true, CSSMotion);
9392
testMotion(CSSMotionList, container => {

tests/StrictMode.spec.tsx

-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ import { fireEvent, render } from '@testing-library/react';
66
import classNames from 'classnames';
77
import React from 'react';
88
import { act } from 'react-dom/test-utils';
9-
// import type { CSSMotionProps } from '../src/CSSMotion';
109
import { genCSSMotion, type CSSMotionRef } from '../src/CSSMotion';
11-
// import RefCSSMotion, { genCSSMotion } from '../src/CSSMotion';
12-
// import ReactDOM from 'react-dom';
1310

1411
describe('StrictMode', () => {
1512
const CSSMotion = genCSSMotion({

0 commit comments

Comments
 (0)