Skip to content
Snippets Groups Projects
Commit aecb4bd1 authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

fix(submission-flow): fix manuscript files step

parent c6e3a912
No related branches found
No related tags found
1 merge request!43Sprint #19
...@@ -32,6 +32,7 @@ const FileSection = ({ ...@@ -32,6 +32,7 @@ const FileSection = ({
isFirst, isFirst,
required, required,
moveItem, moveItem,
maxFiles,
isFileItemOver, isFileItemOver,
canDropFileItem, canDropFileItem,
connectFileDrop, connectFileDrop,
...@@ -58,9 +59,14 @@ const FileSection = ({ ...@@ -58,9 +59,14 @@ const FileSection = ({
<Label required={required}>{title}</Label> <Label required={required}>{title}</Label>
<FilePicker <FilePicker
allowedFileExtensions={allowedFileExtensions} allowedFileExtensions={allowedFileExtensions}
disabled={files.length >= maxFiles}
onUpload={onFilePick} onUpload={onFilePick}
> >
<ActionLink icon="plus" size="small"> <ActionLink
disabled={files.length >= maxFiles}
icon="plus"
size="small"
>
UPLOAD FILE UPLOAD FILE
</ActionLink> </ActionLink>
</FilePicker> </FilePicker>
......
...@@ -152,7 +152,7 @@ const Root = styled.div` ...@@ -152,7 +152,7 @@ const Root = styled.div`
box-shadow: ${th('boxShadow')}; box-shadow: ${th('boxShadow')};
cursor: pointer; cursor: pointer;
display: flex; display: flex;
margin: ${th('gridUnit')}; margin-bottom: ${th('gridUnit')};
&:hover { &:hover {
box-shadow: ${th('dashboardCard.hoverShadow')}; box-shadow: ${th('dashboardCard.hoverShadow')};
......
...@@ -42,7 +42,6 @@ const WizardFiles = ({ ...@@ -42,7 +42,6 @@ const WizardFiles = ({
onFileDrop={addFile('coverLetter')} onFileDrop={addFile('coverLetter')}
onFilePick={addFile('coverLetter')} onFilePick={addFile('coverLetter')}
onPreview={previewFile} onPreview={previewFile}
required
title="Cover Letter" title="Cover Letter"
/> />
<FileSection <FileSection
......
import React, { Fragment } from 'react' import React, { Fragment } from 'react'
import { Button, H1 } from '@pubsweet/ui' import { Button } from '@pubsweet/ui'
import { compose, withProps } from 'recompose' import { compose, withProps } from 'recompose'
import { Row } from 'pubsweet-component-faraday-ui' import { Row } from 'pubsweet-component-faraday-ui'
...@@ -15,8 +15,7 @@ const Dashboard = ({ ...@@ -15,8 +15,7 @@ const Dashboard = ({
getDefaultFilterValue, getDefaultFilterValue,
}) => ( }) => (
<Fragment> <Fragment>
<Row alignItems="center" justify="space-between"> <Row alignItems="center" justify="flex-end">
<H1 mb={1}>Dashboard</H1>
<Button <Button
data-test="new-manuscript" data-test="new-manuscript"
disabled={!canCreateDraft} disabled={!canCreateDraft}
......
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