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

Merge branch 'develop' of gitlab.coko.foundation:xpub/xpub-faraday into component-user-addUser

parents cc42d9d4 8354785a
No related branches found
No related tags found
3 merge requests!222Sprint #26,!217Sprint #26,!200Component user add user
...@@ -34,7 +34,14 @@ const CustomHeader = ({ ...@@ -34,7 +34,14 @@ const CustomHeader = ({
</Header> </Header>
) )
const ContextualBox = ({ label, children, rightChildren, ...props }) => const ContextualBox = ({
label,
children,
rightChildren,
toggle,
expanded,
...props
}) =>
!isUndefined(props.expanded) ? ( !isUndefined(props.expanded) ? (
<ControlledAccordion <ControlledAccordion
header={CustomHeader} header={CustomHeader}
...@@ -75,8 +82,8 @@ ContextualBox.propTypes = { ...@@ -75,8 +82,8 @@ ContextualBox.propTypes = {
ContextualBox.defaultProps = { ContextualBox.defaultProps = {
label: '', label: '',
rightChildren: undefined, rightChildren: undefined,
expanded: false, toggle: undefined,
toggle: () => {}, expanded: undefined,
} }
// #region styles // #region styles
......
...@@ -28,7 +28,6 @@ const EditorialReportCard = ({ ...@@ -28,7 +28,6 @@ const EditorialReportCard = ({
<Label mb={1 / 2}> <Label mb={1 / 2}>
{editorRole === 'HE' ? 'Recommendation' : 'Decision'} {editorRole === 'HE' ? 'Recommendation' : 'Decision'}
</Label> </Label>
)
<Text>{recommendation}</Text> <Text>{recommendation}</Text>
</Item> </Item>
......
...@@ -368,10 +368,8 @@ export default compose( ...@@ -368,10 +368,8 @@ export default compose(
fetchUpdatedCollection, fetchUpdatedCollection,
editorialRecommendations, editorialRecommendations,
fragment, fragment,
collection: { status },
currentUser: { currentUser: {
isEIC, isEIC,
isReviewer,
isInvitedHE, isInvitedHE,
isInvitedToReview, isInvitedToReview,
isHEToManuscript, isHEToManuscript,
...@@ -398,15 +396,6 @@ export default compose( ...@@ -398,15 +396,6 @@ export default compose(
setEditorInChief(head(res.users)), setEditorInChief(head(res.users)),
) )
if (isEIC && status === 'pendingApproval') {
this.props.toggleEicDecision()
}
if (isReviewer && status === 'reviewCompleted')
this.props.toggleReviewReport()
if (isHEToManuscript && status === 'reviewCompleted')
this.props.toggleHERecommentation()
if (canInviteReviewers) { if (canInviteReviewers) {
getPublonsReviewers(fragmentId, setError) getPublonsReviewers(fragmentId, setError)
} }
......
...@@ -17,7 +17,6 @@ const SubmittedReports = ({ reports }) => ( ...@@ -17,7 +17,6 @@ const SubmittedReports = ({ reports }) => (
{reports} {reports}
</Text> </Text>
<Text mr={1 / 2} pr={1 / 2} secondary> <Text mr={1 / 2} pr={1 / 2} secondary>
{' '}
submitted submitted
</Text> </Text>
</Row> </Row>
......
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