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

refactor(ReviewerNumbering): Replaced reviewerIndex with reviewerNumbers in all files

parent a3108046
No related branches found
No related tags found
4 merge requests!176Sprint 24,!171Sprint 24,!164Hin 1115 author reviewer numbering,!163Hin 1115
......@@ -14,7 +14,7 @@ const ReviewerReport = ({
publicReport,
privateReport,
reviewerName,
reviewerIndex,
reviewerNumber,
recommendation,
showOwner = false,
report: { submittedOn },
......@@ -31,7 +31,7 @@ const ReviewerReport = ({
<Fragment>
<Text>{reviewerName}</Text>
<Text customId ml={1} mr={1}>
{`Reviewer ${reviewerIndex}`}
{`Reviewer ${reviewerNumber}`}
</Text>
</Fragment>
)}
......
......@@ -21,7 +21,7 @@ const ReviewerReportAuthor = ({
downloadFile,
publicReport,
reviewerName,
reviewerIndex,
reviewerNumber,
recommendation,
showOwner = false,
report: { submittedOn },
......@@ -38,7 +38,7 @@ const ReviewerReportAuthor = ({
</Row>
)}
<Text customId ml={1} mr={1} whiteSpace="nowrap">
{`Reviewer ${reviewerIndex}`}
{`Reviewer ${reviewerNumber}`}
</Text>
<DateParser timestamp={submittedOn}>
{date => <Text>{date}</Text>}
......@@ -78,7 +78,7 @@ export default compose(
'reviewer.lastName',
'',
)}`,
reviewerIndex: get(report, 'reviewerIndex', ''),
reviewerNumber: get(report, 'reviewerNumber', ''),
})),
)(ReviewerReportAuthor)
......
......@@ -29,7 +29,7 @@ const report = {
submittedOn: 1538053600624,
recommendation: 'publish',
recommendationType: 'review',
reviewerIndex: 1
reviewerNumber: 1
}
const journal = {
......
......@@ -28,7 +28,7 @@ const reports = [
submittedOn: 1539339580826,
recommendation: 'minor',
recommendationType: 'review',
reviewerIndex: 1,
reviewerNumber: 1,
},
{
id: '21258b47-aba5-4597-926e-765458c4fda2',
......@@ -45,7 +45,7 @@ const reports = [
submittedOn: 1539689169611,
recommendation: 'publish',
recommendationType: 'review',
reviewerIndex: 2,
reviewerNumber: 2,
},
]
......
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