diff --git a/src/components/FileUpload.tsx b/src/components/FileUpload.tsx index 1327a3d..2eef877 100644 --- a/src/components/FileUpload.tsx +++ b/src/components/FileUpload.tsx @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { Modal, Button, Loader, Notification, FileInput } from '@mantine/core'; +import { Modal, Button, Notification, FileInput } from '@mantine/core'; import '@/css/FileUpload.css'; interface FileUploadProps { @@ -13,6 +13,7 @@ const FileUpload: React.FC = ({ uploadUrl }) => { const [success, setSuccess] = useState(null); const [loading, setLoading] = useState(false); + const handleFileChange = (files: File[]) => { if (files.length > 0) { setSelectedFiles((prevFiles) => [...prevFiles, ...files]); @@ -107,12 +108,8 @@ const FileUpload: React.FC = ({ uploadUrl }) => { )} - {loading && ( - - )} -
- + {success && ( setSuccess(null)} style={{ marginTop: 10 }}>