Commit 32783031 authored by Yannis Barlas's avatar Yannis Barlas

feat(submission form): change initial submission confirmation modal text

parent 1e1e80b3
......@@ -133,6 +133,7 @@ const SubmissionForm = props => {
</Button>
<SubmissionConfirmationModal
initial={initialSubmissionState}
isOpen={on}
onConfirm={handleSubmit}
onRequestClose={toggle}
......
......@@ -2,14 +2,19 @@ import React from 'react'
import WarningModal from './WarningModal'
const SubmissionConfirmationModal = props => (
const SubmissionConfirmationModal = ({ initial, ...rest }) => (
<WarningModal
headerText="confirm your submission"
textSuccess="yes"
{...props}
{...rest}
>
You are submitting your article, it will not be editable until after
editorial review. Are you ready to submit?
{initial &&
`You are submitting your article to the editorial office. An editor will
be in touch after the initial evaluation. Are you ready to submit?`}
{!initial &&
`You are submitting your article, it will not be editable until after
editorial review. Are you ready to submit?`}
</WarningModal>
)
......
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