Skip to content

Commit

Permalink
hide button from those who are not teacher
Browse files Browse the repository at this point in the history
  • Loading branch information
ollikehy committed Sep 6, 2021
1 parent 6ce1516 commit 0ae96f1
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,16 @@ const FeedbackTargetResults = () => {
return (
<>
<Box mb={2} display="flex" justifyContent="flex-end">
<Button
variant="contained"
color="secondary"
disabled={!isOpen}
onClick={handleCloseClick}
>
{t('feedbackTargetResults:closeImmediately')}
</Button>
{isTeacher && (
<Button
variant="contained"
color="secondary"
disabled={!isOpen}
onClick={handleCloseClick}
>
{t('feedbackTargetResults:closeImmediately')}
</Button>
)}
{feedbacks.length !== 0 && isTeacher && (
<ExportCsvLink
feedbackTarget={feedbackTarget}
Expand Down

0 comments on commit 0ae96f1

Please sign in to comment.