Skip to content
Snippets Groups Projects
Commit 65659e73 authored by Giannis Kopanas's avatar Giannis Kopanas
Browse files

Change css of reviewers status on To review section

parent d2618cb5
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,10 @@ const Reviews = ({ reviews }) => ( ...@@ -8,7 +8,10 @@ const Reviews = ({ reviews }) => (
<div className={classes.root}> <div className={classes.root}>
{['invited', 'accepted', 'rejected', 'completed'].map(status => ( {['invited', 'accepted', 'rejected', 'completed'].map(status => (
<span className={classes.badge} key={status}> <span className={classes.badge} key={status}>
<Badge count={reviews[status].length} label={status} /> <Badge
count={reviews[status] ? reviews[status].length : 0}
label={status}
/>
</span> </span>
))} ))}
</div> </div>
......
...@@ -19,7 +19,7 @@ const ReviewerItem = ({ project, version, currentUser, reviewerResponse }) => { ...@@ -19,7 +19,7 @@ const ReviewerItem = ({ project, version, currentUser, reviewerResponse }) => {
<VersionTitle className={classes.versionTitle} version={version} /> <VersionTitle className={classes.versionTitle} version={version} />
{reviewer && ( {reviewer && (
<div> <div className={classes.links}>
{reviewer.status === 'accepted' && ( {reviewer.status === 'accepted' && (
<div className={classes.links}> <div className={classes.links}>
<div className={classes.link}> <div className={classes.link}>
...@@ -60,8 +60,8 @@ const ReviewerItem = ({ project, version, currentUser, reviewerResponse }) => { ...@@ -60,8 +60,8 @@ const ReviewerItem = ({ project, version, currentUser, reviewerResponse }) => {
</div> </div>
</div> </div>
)} )}
{reviewer.status === 'completed' && 'completed'}
{reviewer.status === 'rejected' && <div>rejected</div>} {reviewer.status === 'rejected' && 'rejected'}
</div> </div>
)} )}
</div> </div>
......
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