Skip to content

Commit 8b414b1

Browse files
committed
remove react-lifecycles-compat
1 parent 732e50b commit 8b414b1

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"@types/raf": "^3.4.0",
5151
"@types/react": "^16.9.5",
5252
"@types/react-dom": "^16.9.1",
53-
"@types/react-lifecycles-compat": "^3.0.1",
5453
"@types/warning": "^3.0.0",
5554
"@umijs/fabric": "^1.1.10",
5655
"enzyme": "^3.10.0",
@@ -70,9 +69,7 @@
7069
"typescript": "^3.6.3"
7170
},
7271
"dependencies": {
73-
"babel-runtime": "^6.26.0",
7472
"classnames": "^2.2.6",
75-
"rc-util": "^4.16.1",
76-
"react-lifecycles-compat": "^3.0.4"
73+
"rc-util": "^4.16.1"
7774
}
7875
}

src/DrawerChild.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import classnames from 'classnames';
22
import getScrollBarSize from 'rc-util/lib/getScrollBarSize';
33
import KeyCode from 'rc-util/lib/KeyCode';
44
import * as React from 'react';
5-
import { polyfill } from 'react-lifecycles-compat';
65

76
import { IDrawerChildProps } from './IDrawerPropTypes';
87

@@ -543,4 +542,4 @@ class DrawerChild extends React.Component<IDrawerChildProps, IState> {
543542
}
544543
}
545544

546-
export default polyfill(DrawerChild);
545+
export default DrawerChild;

src/DrawerWrapper.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Portal from 'rc-util/lib/PortalWrapper';
22
import * as React from 'react';
3-
import { polyfill } from 'react-lifecycles-compat';
43

54
import Child from './DrawerChild';
65
import { IDrawerProps, IDrawerChildProps } from './IDrawerPropTypes';
@@ -146,4 +145,4 @@ class DrawerWrapper extends React.Component<IDrawerProps, IState> {
146145
}
147146
}
148147

149-
export default polyfill(DrawerWrapper);
148+
export default DrawerWrapper;

0 commit comments

Comments
 (0)