Skip to content

Commit c35aeef

Browse files
authored
🗑️ remove unused deps (#472)
1 parent cef30f7 commit c35aeef

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

examples/column-resize.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import PropTypes from 'prop-types';
32
import { Resizable } from 'react-resizable';
43
import Table from '../src';
54
import '../assets/index.less';
@@ -20,11 +19,6 @@ const ResizableTitle = props => {
2019
);
2120
};
2221

23-
ResizableTitle.propTypes = {
24-
onResize: PropTypes.func.isRequired,
25-
width: PropTypes.number,
26-
};
27-
2822
interface RecordType {
2923
a: string;
3024
b?: string;

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,9 @@
5151
},
5252
"dependencies": {
5353
"classnames": "^2.2.5",
54-
"component-classes": "^1.2.6",
55-
"lodash": "^4.17.5",
56-
"prop-types": "^15.5.8",
5754
"raf": "^3.4.1",
5855
"rc-resize-observer": "^0.2.0",
5956
"rc-util": "^4.20.1",
60-
"react-lifecycles-compat": "^3.0.2",
6157
"shallowequal": "^1.1.0"
6258
},
6359
"devDependencies": {

src/Table.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ interface MemoTableContentProps {
8282
pingRight: boolean;
8383
props: any;
8484
}
85+
8586
const MemoTableContent = React.memo<MemoTableContentProps>(
8687
({ children }) => children as React.ReactElement,
8788

0 commit comments

Comments
 (0)