Skip to content
Snippets Groups Projects
Commit a79b83d4 authored by Sinzeanu Demetriad's avatar Sinzeanu Demetriad
Browse files

docs(ResponseToRevisionRequest/ReviewDetails): Wrote documentation for...

docs(ResponseToRevisionRequest/ReviewDetails): Wrote documentation for ResponseToRevisionRequest and
parent fa34fd79
No related branches found
No related tags found
3 merge requests!222Sprint #26,!217Sprint #26,!191Hin 1116 documentation
import React from 'react'
import PropTypes from 'prop-types'
import { ContextualBox, AuthorReply } from '../'
const ResponseToRevisionRequest = ({
......@@ -18,4 +18,20 @@ const ResponseToRevisionRequest = ({
</ContextualBox>
)
ResponseToRevisionRequest.propTypes = {
/** Object containing the selected fragment. */
fragment: PropTypes.object, //eslint-disable-line
/** Callback function used to control the state of the component.
* To be used together with the `expanded` prop.
*/
toggle: PropTypes.func,
/** Prop used together with toggle. */
expanded: PropTypes.bool,
}
ResponseToRevisionRequest.defaultProps = {
fragment: {},
toggle: () => {},
expanded: false,
}
export default ResponseToRevisionRequest
import React, { Fragment } from 'react'
import { get } from 'lodash'
import PropTypes from 'prop-types'
import { H4 } from '@pubsweet/ui'
import styled from 'styled-components'
import { th } from '@pubsweet/ui-toolkit'
......@@ -138,6 +139,67 @@ const ReviewerDetails = ({
</ContextualBox>
)
ReviewerDetails.propTypes = {
/** Object containing the list of recommendations. */
journal: PropTypes.object, //eslint-disable-line
/** Object containing the selected fragment. */
fragment: PropTypes.object, //eslint-disable-line
/** Specifies how many reviewers have been invited. */
invitations: PropTypes.array, //eslint-disable-line
/** Array that contains publon reviewers. */
publonReviewers: PropTypes.array, //eslint-disable-line
/** View content of the uploaded file. */
previewFile: PropTypes.func,
/** Downloads the file from the server. */
downloadFile: PropTypes.func,
/** Sends an invitation to the reviewer. */
onInviteReviewer: PropTypes.func,
/** Reviewers reports. */
reports: PropTypes.array, //eslint-disable-line
/** Sends an invitation to a Publon reviewer. */
onInvitePublonReviewer: PropTypes.func,
/** Resends an invitation to an already invited. */
onResendReviewerInvite: PropTypes.func,
/** Cancels an invitation to an invited reviewer. */
onRevokeReviewerInvite: PropTypes.func,
/** Callback function used to control the state of the component.
* To be used together with the `expanded` prop.
*/
toggle: PropTypes.func,
/** Prop used together with toggle. */
expanded: PropTypes.bool,
/* Specifies if the contextual box should be highlighted */
highlight: PropTypes.bool,
/** Specifies if manuscript is at the latest version. */
isLatestVersion: PropTypes.bool,
/** Specifies if we can invite reviewers on the current version. */
canInviteReviewers: PropTypes.bool,
/** Specifies if we can view reviewers details on the current version. */
canViewReviewersDetails: PropTypes.bool,
/** Specifies if the author can view reports details on the current version. */
authorCanViewReportsDetails: PropTypes.func,
}
ReviewerDetails.defaultProps = {
journal: {},
reports: [],
fragment: {},
invitations: [],
publonReviewers: [],
previewFile: () => {},
downloadFile: () => {},
onInviteReviewer: () => {},
onInvitePublonReviewer: () => {},
onResendReviewerInvite: () => {},
onRevokeReviewerInvite: () => {},
toggle: () => {},
expanded: false,
highlight: false,
canInviteReviewers: false,
canViewReviewersDetails: false,
authorCanViewReportsDetails: () => {},
isLatestVersion: false,
}
export default compose(
withFilePreview,
withFileDownload,
......
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