diff --git a/js/components/ascribe_uploader/file_drag_and_drop.js b/js/components/ascribe_uploader/file_drag_and_drop.js index a4d1781b..2fb9f78f 100644 --- a/js/components/ascribe_uploader/file_drag_and_drop.js +++ b/js/components/ascribe_uploader/file_drag_and_drop.js @@ -12,7 +12,8 @@ var FileDragAndDrop = React.createClass({ onDragOver: React.PropTypes.func, onDragEnd: React.PropTypes.func, filesToUpload: React.PropTypes.array, - handleDeleteFile: React.PropTypes.func + handleDeleteFile: React.PropTypes.func, + multiple: React.PropTypes.bool }, handleDragStart(event) { @@ -105,7 +106,7 @@ var FileDragAndDrop = React.createClass({ files={this.props.filesToUpload} handleDeleteFile={this.handleDeleteFile}/> + handleDeleteFile={this.handleDeleteFile} + multiple={this.props.multiple}/> ); } diff --git a/js/components/register_piece.js b/js/components/register_piece.js index 693c43be..b12d2c2b 100644 --- a/js/components/register_piece.js +++ b/js/components/register_piece.js @@ -187,7 +187,8 @@ let FileUploader = React.createClass( { let InputDate = React.createClass({ propTypes: { - placeholderText: React.PropTypes.string + placeholderText: React.PropTypes.string, + onChange: React.PropTypes.func }, getInitialState() {