Disabled the review buttons
This commit is contained in:
@@ -296,6 +296,7 @@ export default function Finish({user, scores, modules, information, solutions, i
|
||||
<div className="flex w-fit cursor-pointer flex-col items-center gap-1">
|
||||
<button
|
||||
onClick={() => onViewResults()}
|
||||
disabled={assignment && !assignment.released}
|
||||
className="bg-mti-purple-light hover:bg-mti-purple flex h-11 w-11 items-center justify-center rounded-full transition duration-300 ease-in-out">
|
||||
<BsEyeFill className="h-7 w-7 text-white" />
|
||||
</button>
|
||||
@@ -303,6 +304,7 @@ export default function Finish({user, scores, modules, information, solutions, i
|
||||
</div>
|
||||
<div className="flex w-fit cursor-pointer flex-col items-center gap-1">
|
||||
<button
|
||||
disabled={assignment && !assignment.released}
|
||||
onClick={() => onViewResults(modules.findIndex((x) => x === selectedModule))}
|
||||
className="bg-mti-purple-light hover:bg-mti-purple flex h-11 w-11 items-center justify-center rounded-full transition duration-300 ease-in-out">
|
||||
<BsEyeFill className="h-7 w-7 text-white" />
|
||||
|
||||
Reference in New Issue
Block a user