11import React from 'react' ;
22import PropTypes from 'prop-types' ;
3- import DropfileField from './DropfileFieldWrapper ' ;
3+ import DropfileField from './DropfileField ' ;
44import Control from './Control' ;
55import './body.css' ;
66
77const Body = props => (
88 < div className = "body-container" >
99 < DropfileField
1010 isToolbarHidden = { props . isToolbarHidden }
11- htmlBody = { props . htmlBody }
12- getHtmlBody = { props . getHtmlBody }
1311 blockRenderMap = { props . blockRenderMap }
12+ getHtmlBody = { props . getHtmlBody }
13+ htmlBody = { props . htmlBody }
14+ files = { props . files }
15+ isDragActive = { props . isDragActive }
16+ onDragLeave = { props . handleDragLeave }
17+ onDragOver = { props . handleDragOver }
18+ onClearFile = { props . onClearFile }
19+ onDrop = { props . onDrop }
1420 />
1521 < Control
1622 onClickTextEditor = { props . onClickTextEditor }
1723 onClickSendMessage = { props . onClickSendMessage }
1824 status = { props . status }
25+ onDrop = { props . onDrop }
1926 />
2027 </ div >
2128) ;
@@ -27,7 +34,13 @@ Body.propTypes = {
2734 isToolbarHidden : PropTypes . bool ,
2835 onClickSendMessage : PropTypes . func ,
2936 onClickTextEditor : PropTypes . func ,
30- status : PropTypes . number
37+ status : PropTypes . number ,
38+ files : PropTypes . array ,
39+ onDrop : PropTypes . func ,
40+ onClearFile : PropTypes . func ,
41+ handleDragLeave : PropTypes . func ,
42+ handleDragOver : PropTypes . func ,
43+ isDragActive : PropTypes . bool
3144} ;
3245
3346export default Body ;
0 commit comments