diff --git a/app/components/DecisionForm.js b/app/components/DecisionForm.js index 2d20aad476e1b2369df5eb125e6a372a9a8d3ba0..052595ffaeccb1b465fd0115ff9f69febffc0913 100644 --- a/app/components/DecisionForm.js +++ b/app/components/DecisionForm.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types' import FRC from 'formsy-react-components' import { Button } from 'react-bootstrap' -const DecisionForm = ({ role, onSubmit }) => ( +const DecisionForm = ({ onSubmit }) => ( <FRC.Form onSubmit={onSubmit} validateOnSubmit={true} layout="vertical" className="content-interactive"> <div> <FRC.Textarea name="decision" label="Decision" rows={5}/> @@ -16,7 +16,6 @@ const DecisionForm = ({ role, onSubmit }) => ( ) DecisionForm.propTypes = { - role: PropTypes.object.isRequired, onSubmit: PropTypes.func.isRequired } diff --git a/app/components/ProjectActions.js b/app/components/ProjectActions.js index 45e7e741d8bf0b367bf683a6c79a38067b831833..5fdd007990d96461be068d674d2b892a28c02d2c 100644 --- a/app/components/ProjectActions.js +++ b/app/components/ProjectActions.js @@ -6,7 +6,7 @@ import './ProjectActions.css' const ProjectActions = ({ project }) => ( <div className="project-actions content-metadata"> - {project.status === 'submitted' && ( + {project.status === 'submitted' ? ( <div> <div> <Link to={`/projects/${project.id}/editor`} className="project-action">assign an editor</Link> @@ -16,6 +16,10 @@ const ProjectActions = ({ project }) => ( <Link to={`/projects/${project.id}/reviewers`} className="project-action">invite reviewers</Link> </div> </div> + ) : ( + <div> + <Link to={`/editor/${project.id}`} target="editor" className="project-action">edit your manuscript</Link> + </div> )} </div> ) diff --git a/app/containers/DeclarationsContainer.js b/app/containers/DeclarationsContainer.js index aabc1dc7343fdbf39476884f99ad5b05ad5ba959..772f0dbf14b0e5f16b1d8aed29395ea7eea1ad1d 100644 --- a/app/containers/DeclarationsContainer.js +++ b/app/containers/DeclarationsContainer.js @@ -7,8 +7,6 @@ import { updateFragment } from 'pubsweet-client/src/actions/fragments' import DeclarationQuestions from '../components/DeclarationQuestions' import DeclarationAnswers from '../components/DeclarationAnswers' -import './Declarations.css' - class Declarations extends React.Component { submit = declarations => { const { project, push, updateFragment, updateCollection } = this.props