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

Merge branch 'hindawi-theme' of gitlab.coko.foundation:xpub/xpub-faraday into hindawi-theme

parents cfd45e46 122ecbf3
No related branches found
No related tags found
1 merge request!43Sprint #19
...@@ -227,6 +227,7 @@ const sendAuthorsEmail = async ({ ...@@ -227,6 +227,7 @@ const sendAuthorsEmail = async ({
return { return {
...author, ...author,
isConfirmed: user.isConfirmed, isConfirmed: user.isConfirmed,
passwordResetToken: user.passwordResetToken,
...getEmailCopy({ ...getEmailCopy({
customId, customId,
emailType: author.isSubmitting emailType: author.isSubmitting
......
...@@ -27,6 +27,7 @@ const SignUpInvitation = ({ ...@@ -27,6 +27,7 @@ const SignUpInvitation = ({
initialValues={initialValues} initialValues={initialValues}
journal={journal} journal={journal}
onSubmit={nextStep} onSubmit={nextStep}
type={type}
/> />
)} )}
{step === 1 && ( {step === 1 && (
......
...@@ -76,7 +76,7 @@ export default compose( ...@@ -76,7 +76,7 @@ export default compose(
return { return {
onSubmitText: 'CONFIRM', onSubmitText: 'CONFIRM',
onSubmit: confirmInvitation, onSubmit: confirmInvitation,
onBack: () => history.push('/'), onBack: prevStep,
} }
} }
}, },
......
...@@ -32,7 +32,7 @@ const AgreeCheckbox = ({ value, onChange }) => ( ...@@ -32,7 +32,7 @@ const AgreeCheckbox = ({ value, onChange }) => (
</Row> </Row>
) )
const Step0 = ({ journal, handleSubmit, initialValues, error }) => const Step0 = ({ journal, handleSubmit, initialValues, error, type }) =>
!isUndefined(initialValues) ? ( !isUndefined(initialValues) ? (
<Fragment> <Fragment>
<Row mb={2} mt={3}> <Row mb={2} mt={3}>
...@@ -55,7 +55,7 @@ const Step0 = ({ journal, handleSubmit, initialValues, error }) => ...@@ -55,7 +55,7 @@ const Step0 = ({ journal, handleSubmit, initialValues, error }) =>
</Row> </Row>
<Row mb={2}> <Row mb={2}>
<Item mr={1} vertical> <ItemOverrideAlert mr={1} vertical>
<Label required>Title</Label> <Label required>Title</Label>
<ValidatedField <ValidatedField
component={input => ( component={input => (
...@@ -68,7 +68,7 @@ const Step0 = ({ journal, handleSubmit, initialValues, error }) => ...@@ -68,7 +68,7 @@ const Step0 = ({ journal, handleSubmit, initialValues, error }) =>
name="title" name="title"
validate={[requiredValidator]} validate={[requiredValidator]}
/> />
</Item> </ItemOverrideAlert>
<ItemOverrideAlert ml={1} vertical> <ItemOverrideAlert ml={1} vertical>
<Label required>Country</Label> <Label required>Country</Label>
<ValidatedField <ValidatedField
...@@ -116,7 +116,7 @@ const Step0 = ({ journal, handleSubmit, initialValues, error }) => ...@@ -116,7 +116,7 @@ const Step0 = ({ journal, handleSubmit, initialValues, error }) =>
</Row> </Row>
<Button mt={4} onClick={handleSubmit}> <Button mt={4} onClick={handleSubmit}>
PROCEED TO SET EMAIL AND PASSWORD PROCEED TO SET {type === 'signup' && 'EMAIL AND'} PASSWORD
</Button> </Button>
<Row mt={3}> <Row mt={3}>
......
...@@ -20,6 +20,7 @@ export default { ...@@ -20,6 +20,7 @@ export default {
color: ${th('colorText')}; color: ${th('colorText')};
line-height: ${th('gridUnit')}; line-height: ${th('gridUnit')};
padding: 0 ${th('gridUnit')}; padding: 0 ${th('gridUnit')};
font-family: ${th('fontWriting')};
`, `,
Opener: css` Opener: css`
border-color: ${props => border-color: ${props =>
......
...@@ -6,7 +6,8 @@ module.exports = { ...@@ -6,7 +6,8 @@ module.exports = {
'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/pdf', 'application/pdf',
'application/msword', 'application/msword',
'application/vnd.oasis.opendocument.tex', 'application/vnd.oasis.opendocument.text',
'text/plain',
'application/rdf+xml', 'application/rdf+xml',
]) ])
.error(new Error('Document type is not allowed.')), .error(new Error('Document type is not allowed.')),
...@@ -16,7 +17,8 @@ module.exports = { ...@@ -16,7 +17,8 @@ module.exports = {
'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/pdf', 'application/pdf',
'application/msword', 'application/msword',
'application/vnd.oasis.opendocument.tex', 'application/vnd.oasis.opendocument.text',
'text/plain',
'application/rdf+xml', 'application/rdf+xml',
]) ])
.error(new Error('Document type is not allowed.')), .error(new Error('Document type is not allowed.')),
...@@ -25,6 +27,9 @@ module.exports = { ...@@ -25,6 +27,9 @@ module.exports = {
'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/pdf', 'application/pdf',
'application/msword', 'application/msword',
'application/vnd.oasis.opendocument.text',
'text/plain',
'application/rdf+xml',
]) ])
.error(new Error('Document type is not allowed.')), .error(new Error('Document type is not allowed.')),
review: Joi.any(), review: Joi.any(),
......
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