Removed the ability for a Teacher to upload a file for the Group creation
This commit is contained in:
@@ -119,9 +119,11 @@ const CreatePanel = ({user, users, group, onClose}: CreateDialogProps) => {
|
|||||||
}),
|
}),
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
{user.type !== "teacher" && (
|
||||||
<Button className="w-full max-w-[300px]" onClick={openFilePicker} variant="outline">
|
<Button className="w-full max-w-[300px]" onClick={openFilePicker} variant="outline">
|
||||||
{filesContent.length === 0 ? "Upload participants .txt file" : filesContent[0].name}
|
{filesContent.length === 0 ? "Upload participants .txt file" : filesContent[0].name}
|
||||||
</Button>
|
</Button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user