Only show mark as reviewed when it has not been reviewed

This commit is contained in:
Nicolas Mowen 2024-02-23 12:22:12 -07:00
parent 6311fdb682
commit 30d456dbd2

View File

@ -380,12 +380,14 @@ function PreviewContextItems({
return (
<ContextMenuContent>
{!review.has_been_reviewed && (
<ContextMenuItem onSelect={() => (setReviewed ? setReviewed() : null)}>
<div className="w-full flex justify-between items-center">
Mark As Reviewed
<LuCheckSquare className="ml-4 w-4 h-4" />
</div>
</ContextMenuItem>
)}
<ContextMenuItem onSelect={() => exportReview()}>
<div className="w-full flex justify-between items-center">
Export