Commit 762432f4 authored by Giannis Kopanas's avatar Giannis Kopanas

fix(actions): validationStatus fix

parent 5d6f53e1
Pipeline #8349 passed with stages
in 11 minutes and 39 seconds
......@@ -20,21 +20,9 @@ const OwnerItem = ({ project, version, deleteProject }) => {
const manuscriptLink = `${baseLink}/manuscript`
const actionButtons = {
submit: (
<Action key="submit-button" to={submitLink}>
Summary Info
</Action>
),
manuscript: (
<Action key="manuscript-button" to={manuscriptLink}>
Manuscript
</Action>
),
delete: (
<Action key="delete-button" onClick={() => deleteProject(project)}>
Delete
</Action>
),
submit: <Action to={submitLink}>Summary Info</Action>,
manuscript: <Action to={manuscriptLink}>Manuscript</Action>,
delete: <Action onClick={() => deleteProject(project)}>Delete</Action>,
}
const unauthorized = (
......
......@@ -22,11 +22,11 @@ const minChars100 = minChars(100)
const maxChars500 = maxChars(500)
const maxChars5000 = maxChars(5000)
const TitleInput = input => (
const TitleInput = ({ validationStatus, ...input }) => (
<TitleEditor placeholder="Enter the title…" title="Title" {...input} />
)
const AbstractInput = input => (
const AbstractInput = ({ validationStatus, ...input }) => (
<AbstractEditor
placeholder="Enter the abstract…"
title="Abstract"
......
......@@ -16,7 +16,9 @@ const stripHtml = htmlString => {
return temp.textContent
}
const Input = extraProps => input => <NoteEditor {...input} {...extraProps} />
const Input = extraProps => ({ validationStatus, ...input }) => (
<NoteEditor {...input} {...extraProps} />
)
const Notes = ({ readonly, journal }) => (
<FormSection name="notes">
......
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