Skip to content
Snippets Groups Projects
Commit be56a6eb authored by Mihail Hagiu's avatar Mihail Hagiu
Browse files

refactor(InviteReviewers): Destructured paramters in ManuscriptLayout

parent 22a75f60
No related branches found
No related tags found
1 merge request!112Hin 1062
...@@ -47,12 +47,8 @@ const ManuscriptLayout = ({ ...@@ -47,12 +47,8 @@ const ManuscriptLayout = ({
heExpanded, heExpanded,
onHEResponse, onHEResponse,
toggleAssignHE, toggleAssignHE,
onInviteReviewer,
toggleHEResponse, toggleHEResponse,
heResponseExpanded, heResponseExpanded,
onReviewerResponse,
onResendReviewerInvite,
onRevokeReviewerInvite,
toggleReviewerResponse, toggleReviewerResponse,
invitationsWithReviewers, invitationsWithReviewers,
publonReviewers, publonReviewers,
...@@ -69,8 +65,8 @@ const ManuscriptLayout = ({ ...@@ -69,8 +65,8 @@ const ManuscriptLayout = ({
reviewerDetailsExpanded, reviewerDetailsExpanded,
editorialCommentsExpanded, editorialCommentsExpanded,
toggleEditorialComments, toggleEditorialComments,
onInvitePublonReviewer,
submitRevision, submitRevision,
inviteReviewer,
}) => ( }) => (
<Root pb={30}> <Root pb={30}>
{!isEmpty(collection) && !isEmpty(fragment) ? ( {!isEmpty(collection) && !isEmpty(fragment) ? (
...@@ -154,7 +150,7 @@ const ManuscriptLayout = ({ ...@@ -154,7 +150,7 @@ const ManuscriptLayout = ({
<ResponseToInvitation <ResponseToInvitation
expanded={reviewerResponseExpanded} expanded={reviewerResponseExpanded}
label="Do you agree to review this manuscript?" label="Do you agree to review this manuscript?"
onResponse={onReviewerResponse} onResponse={inviteReviewer.onReviewerResponse}
title="Respond to Invitation to Review" title="Respond to Invitation to Review"
toggle={toggleReviewerResponse} toggle={toggleReviewerResponse}
/> />
...@@ -186,14 +182,11 @@ const ManuscriptLayout = ({ ...@@ -186,14 +182,11 @@ const ManuscriptLayout = ({
isFetching={isFetching.publonsFetching} isFetching={isFetching.publonsFetching}
journal={journal} journal={journal}
mb={2} mb={2}
onInvitePublonReviewer={onInvitePublonReviewer}
onInviteReviewer={onInviteReviewer}
onResendReviewerInvite={onResendReviewerInvite}
onRevokeReviewerInvite={onRevokeReviewerInvite}
publonReviewers={publonReviewers} publonReviewers={publonReviewers}
reviewerReports={reviewerReports} reviewerReports={reviewerReports}
scrollIntoView scrollIntoView
toggle={toggleReviewerDetails} toggle={toggleReviewerDetails}
{...inviteReviewer}
/> />
)} )}
{get(currentUser, 'permissions.authorCanViewReportsDetails', false) && ( {get(currentUser, 'permissions.authorCanViewReportsDetails', false) && (
......
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