File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2121 "react-color" : " ^2.17.0" ,
2222 "react-colorscales" : " 0.7.3" ,
2323 "react-day-picker" : " ^7.3.0" ,
24- "react-dropzone" : " ^7 .0.1 " ,
24+ "react-dropzone" : " ^9 .0.0 " ,
2525 "react-plotly.js" : " ^2.3.0" ,
2626 "react-rangeslider" : " ^2.2.0" ,
2727 "react-resizable-rotatable-draggable" : " ^0.2.0" ,
Original file line number Diff line number Diff line change @@ -138,11 +138,15 @@ class Dropzone extends Component {
138138 < Drop
139139 accept = { this . validFiletypes [ this . props . fileType ] }
140140 onDrop = { this . onDrop }
141- className = "dropzone-container"
142141 activeClassName = "dropzone-container--active"
143142 rejectClassName = "dropzone-container--rejected"
144143 >
145- < div className = "dropzone-container__content" > { this . state . content } </ div >
144+ { ( { getRootProps, getInputProps} ) => (
145+ < div { ...getRootProps ( ) } className = "dropzone-container" >
146+ < input { ...getInputProps ( ) } />
147+ < div className = "dropzone-container__content" > { this . state . content } </ div >
148+ </ div >
149+ ) }
146150 </ Drop >
147151 ) ;
148152 }
You can’t perform that action at this time.
0 commit comments