Skip to content

Commit 083eab0

Browse files
committed
chore: update rc-motion to @rc-component/motion and adjust imports accordingly
1 parent 62f0a37 commit 083eab0

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@babel/runtime": "^7.11.1",
5050
"@rc-component/util": "^1.3.0",
5151
"clsx": "^2.1.1",
52-
"rc-motion": "^2.4.4"
52+
"@rc-component/motion": "^1.1.4"
5353
},
5454
"devDependencies": {
5555
"@rc-component/father-plugin": "^2.0.1",

src/MotionThumb.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import CSSMotion from '@rc-component/motion';
12
import useLayoutEffect from '@rc-component/util/lib/hooks/useLayoutEffect';
23
import { composeRef } from '@rc-component/util/lib/ref';
34
import { clsx } from 'clsx';
4-
import CSSMotion from 'rc-motion';
55
import * as React from 'react';
66
import type { SegmentedValue } from '.';
77

tests/index.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import userEvent from '@testing-library/user-event';
33
import * as React from 'react';
44
import Segmented from '../src';
55

6-
jest.mock('rc-motion/lib/util/motion', () => {
6+
jest.mock('@rc-component/motion/lib/util/motion', () => {
77
return {
8-
...jest.requireActual('rc-motion/lib/util/motion'),
8+
...jest.requireActual('@rc-component/motion/lib/util/motion'),
99
supportTransition: true,
1010
};
1111
});

0 commit comments

Comments
 (0)