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 = ({ ...@@ -15,6 +15,7 @@ const EditorialReportCard = ({
recommendation, recommendation,
reviewerName, reviewerName,
reviewerRole, reviewerRole,
hideEditorName,
report: { createdOn, reviewer }, report: { createdOn, reviewer },
}) => ( }) => (
<Root> <Root>
...@@ -27,7 +28,7 @@ const EditorialReportCard = ({ ...@@ -27,7 +28,7 @@ const EditorialReportCard = ({
<Item justify="flex-end"> <Item justify="flex-end">
{reviewer && ( {reviewer && (
<Fragment> <Fragment>
<Text mr={1 / 2}>{reviewerName}</Text> <Text mr={1 / 2}>{hideEditorName ? '' : reviewerName}</Text>
<Tag mr={2}>{reviewerRole}</Tag> <Tag mr={2}>{reviewerRole}</Tag>
</Fragment> </Fragment>
)} )}
......
...@@ -47,7 +47,8 @@ const journal = { ...@@ -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 Card with message for the editorial team
...@@ -97,7 +98,8 @@ const journal = { ...@@ -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 Card with message for the editorial team and for the author
...@@ -131,6 +133,7 @@ const report = { ...@@ -131,6 +133,7 @@ const report = {
editorInChief: false, editorInChief: false,
handlingEditor: true, handlingEditor: true,
}, },
} }
const journal = { const journal = {
recommendations: [ recommendations: [
...@@ -152,5 +155,6 @@ const journal = { ...@@ -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