Topic selected | +Contributors | +Reviewed by | +Add reviewer | +
---|---|---|---|
{row.topic} | +
+ {/* Rendering contributors list */}
+ {row.contributors.map((contributor, idx) => (
+
+ {contributor.name} ({contributor.username})
+
+ ))}
+ |
+
+ {/* Rendering reviewers and their statuses */}
+ {row.reviewers.length > 0 ? (
+ row.reviewers.map((reviewer, idx) => (
+
+ {reviewer.name} ({reviewer.username}) - Review status: {reviewer.status}
+ {reviewer.status === "Submitted" && (
+ handleUnsubmit(row.topic, reviewer.name)}
+ >
+ {" ("}Unsubmit{")"}
+
+ )}
+
+ ))
+ ) : (
+ No reviewers assigned
+ )}
+ |
+ + {/* Button to add reviewer, triggers modal */} + + | +
Topic: {selectedTopic}
+Contributors: {selectedContributors.join(", ")}
+ setReviewerName(e.target.value)} + className="input-field" + /> + setReviewerUsername(e.target.value)} + className="input-field" + /> + + +