File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable react-hooks/exhaustive-deps */
2
- /* eslint react/no-is-mounted:0,react/sort-comp:0,react/prop-types:0 */
3
2
import classnames from 'classnames' ;
4
3
import pickAttrs from '@rc-component/util/lib/pickAttrs' ;
5
4
import React from 'react' ;
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ const Upload: React.FC<Readonly<UploadProps>> = props => {
20
20
withCredentials = false ,
21
21
openFileDialogOnClick = true ,
22
22
hasControlInside = false ,
23
- ...rest
23
+ children,
24
+ ...otherProps
24
25
} = props ;
25
26
return (
26
27
< AjaxUpload
@@ -38,8 +39,10 @@ const Upload: React.FC<Readonly<UploadProps>> = props => {
38
39
withCredentials = { withCredentials }
39
40
openFileDialogOnClick = { openFileDialogOnClick }
40
41
hasControlInside = { hasControlInside }
41
- { ...rest }
42
- />
42
+ { ...otherProps }
43
+ >
44
+ { children }
45
+ </ AjaxUpload >
43
46
) ;
44
47
} ;
45
48
You can’t perform that action at this time.
0 commit comments