mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 04:17:23 +00:00
Fix conditional rendering for file upload button in Files component
This commit is contained in:
@@ -721,7 +721,7 @@ function Files({ files, resourceID }: { files: RFile[]; resourceID: number }) {
|
||||
return <FileTile file={file} key={file.id}></FileTile>;
|
||||
})}
|
||||
<div className={"h-2"}></div>
|
||||
{app.canUpload() || app.allowNormalUserUpload && (
|
||||
{(app.canUpload() || app.allowNormalUserUpload) && (
|
||||
<div className={"flex flex-row-reverse"}>
|
||||
<CreateFileDialog resourceId={resourceID}></CreateFileDialog>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user