diff --git a/src/components/Files/FilesTab.tsx b/src/components/Files/FilesTab.tsx index e842cbb9546..703366a1893 100644 --- a/src/components/Files/FilesTab.tsx +++ b/src/components/Files/FilesTab.tsx @@ -19,6 +19,8 @@ import { DropdownMenuItem, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; +import { Input } from "@/components/ui/input"; +import { Label } from "@/components/ui/label"; import { Progress } from "@/components/ui/progress"; import { Table, @@ -38,7 +40,6 @@ import { import AudioPlayer from "@/components/Common/AudioPlayer"; import Loading from "@/components/Common/Loading"; -import TextFormField from "@/components/Form/FormFields/TextFormField"; import { FileUploadModel } from "@/components/Patient/models"; import useFileManager from "@/hooks/useFileManager"; @@ -576,7 +577,7 @@ const FileUploadDialog = ({ aria-labelledby="file-upload-dialog" > @@ -590,7 +591,9 @@ const FileUploadDialog = ({
- {file.name} + + {file.name} +
- fileUpload.setFileName(e.value, index)} - error={ - index === 0 && fileUpload.error ? fileUpload.error : undefined - } - /> +
+ + + fileUpload.setFileName(e.target.value, index) + } + /> + {index === 0 && fileUpload.error && ( +

+ {fileUpload.error} +

+ )} +
))}