mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Small fixes for warnings
This commit is contained in:
parent
91f9e83e81
commit
537d6d52e8
@ -80,8 +80,8 @@ export function ProxyHandler(...redirectFunctions) {
|
||||
displayName: 'ProxyHandler',
|
||||
|
||||
propTypes: {
|
||||
// Provided from AscribeApp
|
||||
currentUser: React.PropTypes.object.isRequired,
|
||||
// Provided from AscribeApp, after the routes have been initialized
|
||||
currentUser: React.PropTypes.object,
|
||||
whitelabel: React.PropTypes.object,
|
||||
|
||||
// Provided from router
|
||||
|
@ -84,6 +84,7 @@ let FileDragAndDropDialog = React.createClass({
|
||||
dialogElement = [
|
||||
this.getDragDialog(fileClassToUpload.plural),
|
||||
(<span
|
||||
key='mutlipleFilesBtn'
|
||||
className="btn btn-default"
|
||||
onClick={onClick}>
|
||||
{getLangText('choose %s to upload', fileClassToUpload.plural)}
|
||||
@ -96,6 +97,7 @@ let FileDragAndDropDialog = React.createClass({
|
||||
dialogElement = [
|
||||
this.getDragDialog(fileClassToUpload.singular),
|
||||
(<span
|
||||
key='singleFileBtn'
|
||||
className="btn btn-default"
|
||||
onClick={onClick}>
|
||||
{dialog}
|
||||
|
@ -487,7 +487,7 @@ const ReactS3FineUploader = React.createClass({
|
||||
return (enableLocalHashing && !uploadMethod) ||
|
||||
!areAssetsEditable ||
|
||||
(showErrorPrompt && errorState.errorClass) ||
|
||||
(!multiple && filesToDisplay.length);
|
||||
(!multiple && filesToDisplay.length > 0);
|
||||
},
|
||||
|
||||
isFileValid(file) {
|
||||
|
Loading…
Reference in New Issue
Block a user