Commit d8f5e936 authored by Giannis Kopanas's avatar Giannis Kopanas

fix(warnings): don't pass every prop to Dom Element

parent 287aa00a
Pipeline #8386 passed with stages
in 7 minutes and 40 seconds
......@@ -4,11 +4,13 @@ import Dropzone from 'react-dropzone'
import { Icon } from '@pubsweet/ui'
import { th } from '@pubsweet/ui-toolkit'
const StyledDropzone = styled(Dropzone)`
const StyledDropzone = styled(({ disableUpload, ...props }) => (
<Dropzone {...props} />
))`
border: none;
cursor: pointer;
display: inline-block;
${({ disableupload }) => disableupload && 'pointer-events: none;'};
${({ disableUpload }) => disableUpload && 'pointer-events: none;'};
`
const StatusIcon = withTheme(({ children, theme }) => (
......@@ -205,7 +207,7 @@ class UploadManuscript extends Component {
return (
<StyledDropzone
accept="application/vnd.openxmlformats-officedocument.wordprocessingml.document"
disableupload={this.status === 'converting' ? 'disableupload' : null}
disableUpload={this.status === 'converting' ? 'disableUpload' : null}
onDrop={uploadManuscript}
>
<Root>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment