Removed the ability for a Teacher to upload a file for the Group creation

This commit is contained in:
Tiago Ribeiro
2024-01-15 16:34:06 +00:00
parent e47607597c
commit 1335c14acc

View File

@@ -119,9 +119,11 @@ const CreatePanel = ({user, users, group, onClose}: CreateDialogProps) => {
}), }),
}} }}
/> />
<Button className="w-full max-w-[300px]" onClick={openFilePicker} variant="outline"> {user.type !== "teacher" && (
{filesContent.length === 0 ? "Upload participants .txt file" : filesContent[0].name} <Button className="w-full max-w-[300px]" onClick={openFilePicker} variant="outline">
</Button> {filesContent.length === 0 ? "Upload participants .txt file" : filesContent[0].name}
</Button>
)}
</div> </div>
</div> </div>
</div> </div>