File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
components/dash-core-components/src/fragments Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React, {Component} from 'react';
2
2
import Dropzone from 'react-dropzone' ;
3
3
4
4
import { propTypes , defaultProps } from '../components/Upload.react' ;
5
+ import LoadingElement from '../utils/LoadingElement' ;
5
6
6
7
export default class Upload extends Component {
7
8
constructor ( ) {
@@ -62,15 +63,9 @@ export default class Upload extends Component {
62
63
style_active,
63
64
style_reject,
64
65
style_disabled,
65
- loading_state,
66
66
} = this . props ;
67
67
return (
68
- < div
69
- id = { id }
70
- data-dash-is-loading = {
71
- ( loading_state && loading_state . is_loading ) || undefined
72
- }
73
- >
68
+ < LoadingElement id = { id } >
74
69
< Dropzone
75
70
onDrop = { this . onDrop }
76
71
accept = { accept }
@@ -90,7 +85,7 @@ export default class Upload extends Component {
90
85
>
91
86
{ children }
92
87
</ Dropzone >
93
- </ div >
88
+ </ LoadingElement >
94
89
) ;
95
90
}
96
91
}
You can’t perform that action at this time.
0 commit comments