Skip to content
Snippets Groups Projects
Commit fd51a54d authored by Tania Fecheta's avatar Tania Fecheta
Browse files

feat(authorCanSeeEditorialComments): hide editor name in styleguide

parent 9057963c
No related branches found
No related tags found
2 merge requests!110Sprint 21 Features,!93Hin 1013
......@@ -15,6 +15,7 @@ const EditorialReportCard = ({
recommendation,
reviewerName,
reviewerRole,
hideEditorName,
report: { createdOn, reviewer },
}) => (
<Root>
......@@ -27,7 +28,7 @@ const EditorialReportCard = ({
<Item justify="flex-end">
{reviewer && (
<Fragment>
<Text mr={1 / 2}>{reviewerName}</Text>
<Text mr={1 / 2}>{hideEditorName ? '' : reviewerName}</Text>
<Tag mr={2}>{reviewerRole}</Tag>
</Fragment>
)}
......
......@@ -47,7 +47,8 @@ const journal = {
},
],
}
;<EditorialReportCard report={report} journal={journal} />
const hideEditorName = true
;<EditorialReportCard report={report} journal={journal}hideEditorName={hideEditorName}/>
```
Card with message for the editorial team
......@@ -97,7 +98,8 @@ const journal = {
},
],
}
;<EditorialReportCard report={report} journal={journal} />
const hideEditorName = false
;<EditorialReportCard report={report} journal={journal} hideEditorName={hideEditorName} />
```
Card with message for the editorial team and for the author
......@@ -131,6 +133,7 @@ const report = {
editorInChief: false,
handlingEditor: true,
},
}
const journal = {
recommendations: [
......@@ -152,5 +155,6 @@ const journal = {
},
],
}
;<EditorialReportCard report={report} journal={journal} />
const hideEditorName = false
;<EditorialReportCard report={report} journal={journal} hideEditorName={hideEditorName}/>
```
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