From 1ed77f162159feb0a4a26a78ec5ca560672d855e Mon Sep 17 00:00:00 2001 From: qq7 Date: Thu, 28 Jun 2018 19:34:34 +0300 Subject: [PATCH] folderselect option --- src/react-dropbox-chooser.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/react-dropbox-chooser.js b/src/react-dropbox-chooser.js index 2529329..5af60e6 100644 --- a/src/react-dropbox-chooser.js +++ b/src/react-dropbox-chooser.js @@ -19,7 +19,8 @@ export default class DropboxChooser extends Component { linkType: PropTypes.oneOf([ 'preview', 'direct' ]), multiselect: PropTypes.bool, extensions: PropTypes.arrayOf(PropTypes.string), - disabled: PropTypes.bool + disabled: PropTypes.bool, + folderselect: PropTypes.bool }; static defaultProps = { @@ -61,7 +62,8 @@ export default class DropboxChooser extends Component { cancel, linkType, multiselect, - extensions + extensions, + folderselect } = this.props; window.Dropbox.choose({ @@ -69,7 +71,8 @@ export default class DropboxChooser extends Component { cancel, linkType, multiselect, - extensions + extensions, + folderselect }); }