Commit 5d6f53e1 authored by Giannis Kopanas's avatar Giannis Kopanas

fix(revert): valildateStatus

parent 5e6c737b
......@@ -8,7 +8,7 @@ const StyledDropzone = styled(Dropzone)`
border: none;
cursor: pointer;
display: inline-block;
${({ disableupload }) => disableupload === 'true' && 'pointer-events: none;'};
${({ disableupload }) => disableupload && 'pointer-events: none;'};
`
const StatusIcon = withTheme(({ children, theme }) => (
......@@ -205,7 +205,7 @@ class UploadManuscript extends Component {
return (
<StyledDropzone
accept="application/vnd.openxmlformats-officedocument.wordprocessingml.document"
disableupload={(this.status === 'converting').toString()}
disableupload={this.status === 'converting' ? 'disableupload' : null}
onDrop={uploadManuscript}
>
<Root>
......
......@@ -18,17 +18,6 @@ const Label = styled.label`
${override('ui.TextField.Label')};
`
<<<<<<< HEAD
=======
const borderColor = ({ theme, validationstatus = 'default' }) =>
({
error: theme.colorError,
success: theme.colorSuccess,
default: theme.colorBorder,
warning: theme.colorWarning,
}[validationstatus])
>>>>>>> fix(warnings): naming changes
const Input = styled.input`
border: ${th('borderWidth')} ${th('borderStyle')} ${validationColor};
......
......@@ -34,7 +34,7 @@ const ValidatedFieldComponent = ({ component: Component }) => ({
return (
<div>
<Component {...input} validationstatus={validationStatus} />
<Component {...input} validationStatus={validationStatus} />
{/* live region DOM node must be initially present for changes to be announced */}
<MessageWrapper role="alert">
......
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