upd: dokumen

Deskripsi:
- upload file
- view file

No Issues
This commit is contained in:
amel
2024-09-12 14:24:18 +08:00
parent a211e7e4e4
commit e01dbed1eb
6 changed files with 35 additions and 32 deletions

View File

@@ -114,7 +114,10 @@ export default function DrawerMenuDocumentDivision() {
maxSize={3 * 1024 ** 2}
accept={['text/csv', 'image/png', 'image/jpeg', 'image/heic', 'application/pdf']}
onReject={(files) => {
return toast.error('File yang diizinkan: .csv, .png, .jpg, .heic, .pdf dengan ukuran maksimal 3 MB')
refresh.set(true)
setOpenModal(false)
setOpenDrawerDocument(false)
toast.error('File yang diizinkan: .csv, .png, .jpg, .heic, .pdf dengan ukuran maksimal 3 MB')
}}
>
<Flex justify={'center'} align={'center'} direction={'column'} mb={20} onClick={() => openRef.current?.()}>