upd: image type heic

Deskripsi:
- ga jadi pake heic
- fitur : banner, dokumen, project, task, anggota, profile

No Issues
This commit is contained in:
amel
2025-01-23 11:13:20 +08:00
parent 1e15f3bfe4
commit d1f92640a7
10 changed files with 35 additions and 35 deletions

View File

@@ -120,9 +120,9 @@ function CreateBanner() {
}} }}
activateOnClick={false} activateOnClick={false}
maxSize={10 * 1024 ** 2} maxSize={10 * 1024 ** 2}
accept={['image/png', 'image/jpeg', 'image/heic']} accept={['image/png', 'image/jpeg']}
onReject={(files) => { onReject={(files) => {
return toast.error('File yang diizinkan: .png, .jpg, dan .heic dengan ukuran maksimal 10 MB') return toast.error('File yang diizinkan: .png dan .jpg dengan ukuran maksimal 10 MB')
}} }}
onClick={() => openRef.current?.()} onClick={() => openRef.current?.()}
> >

View File

@@ -121,9 +121,9 @@ export default function EditBanner() {
}} }}
activateOnClick={false} activateOnClick={false}
maxSize={10 * 1024 ** 2} maxSize={10 * 1024 ** 2}
accept={['image/png', 'image/jpeg', 'image/heic']} accept={['image/png', 'image/jpeg']}
onReject={(files) => { onReject={(files) => {
return toast.error('File yang diizinkan: .png, .jpg, dan .heic dengan ukuran maksimal 10 MB') return toast.error('File yang diizinkan: .png dan .jpg dengan ukuran maksimal 10 MB')
}} }}
onClick={() => openRef.current?.()} onClick={() => openRef.current?.()}
> >

View File

@@ -149,12 +149,12 @@ export default function DrawerMenuDocumentDivision() {
}} }}
activateOnClick={false} activateOnClick={false}
maxSize={100 * 1024 ** 2} maxSize={100 * 1024 ** 2}
accept={['image/png', 'image/jpeg', 'image/heic', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']} accept={['image/png', 'image/jpeg', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']}
onReject={(files) => { onReject={(files) => {
refresh.set(true) refresh.set(true)
setOpenModal(false) setOpenModal(false)
setOpenDrawerDocument(false) setOpenDrawerDocument(false)
toast.error('File yang diizinkan: .csv, .png, .jpg, .heic, .pdf, .doc, .docx, .xls, .xlsx dengan ukuran maksimal 100 MB') toast.error('File yang diizinkan: .csv, .png, .jpg, .pdf, .doc, .docx, .xls, .xlsx dengan ukuran maksimal 100 MB')
}} }}
> >
<Flex justify={'center'} align={'center'} direction={'column'} mb={20} onClick={() => openRef.current?.()}> <Flex justify={'center'} align={'center'} direction={'column'} mb={20} onClick={() => openRef.current?.()}>

View File

@@ -106,9 +106,9 @@ export default function AddFileDetailProject() {
}} }}
activateOnClick={false} activateOnClick={false}
maxSize={100 * 1024 ** 2} maxSize={100 * 1024 ** 2}
accept={['image/png', 'image/jpeg', 'image/heic', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']} accept={['image/png', 'image/jpeg', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']}
onReject={(files) => { onReject={(files) => {
return toast.error('File yang diizinkan: .csv, .png, .jpg, .heic, .pdf, .doc, .docx, .xls, .xlsx dengan ukuran maksimal 100 MB') return toast.error('File yang diizinkan: .csv, .png, .jpg, .pdf, .doc, .docx, .xls, .xlsx dengan ukuran maksimal 100 MB')
}} }}
> >
</Dropzone> </Dropzone>

View File

@@ -413,9 +413,9 @@ export default function CreateProject() {
}} }}
activateOnClick={false} activateOnClick={false}
maxSize={100 * 1024 ** 2} maxSize={100 * 1024 ** 2}
accept={['image/png', 'image/jpeg', 'image/heic', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']} accept={['image/png', 'image/jpeg', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']}
onReject={(files) => { onReject={(files) => {
return toast.error('File yang diizinkan: .csv, .png, .jpg, .heic, .pdf, .doc, .docx, .xls, .xlsx dengan ukuran maksimal 100 MB') return toast.error('File yang diizinkan: .csv, .png, .jpg, .pdf, .doc, .docx, .xls, .xlsx dengan ukuran maksimal 100 MB')
}} }}
></Dropzone> ></Dropzone>

View File

@@ -107,9 +107,9 @@ export default function AddFileDetailTask() {
}} }}
activateOnClick={false} activateOnClick={false}
maxSize={100 * 1024 ** 2} maxSize={100 * 1024 ** 2}
accept={['image/png', 'image/jpeg', 'image/heic', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']} accept={['image/png', 'image/jpeg', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']}
onReject={(files) => { onReject={(files) => {
return toast.error('File yang diizinkan: .csv, .png, .jpg, .heic, .pdf, .doc, .docx, .xls, .xlsx dengan ukuran maksimal 100 MB') return toast.error('File yang diizinkan: .csv, .png, .jpg, .pdf, .doc, .docx, .xls, .xlsx dengan ukuran maksimal 100 MB')
}} }}
> >
</Dropzone> </Dropzone>

View File

@@ -336,9 +336,9 @@ export default function CreateTask() {
}} }}
activateOnClick={false} activateOnClick={false}
maxSize={100 * 1024 ** 2} maxSize={100 * 1024 ** 2}
accept={['image/png', 'image/jpeg', 'image/heic', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']} accept={['image/png', 'image/jpeg', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']}
onReject={(files) => { onReject={(files) => {
return toast.error('File yang diizinkan: .csv, .png, .jpg, .heic, .pdf, .doc, .docx, .xls, .xlsx dengan ukuran maksimal 100 MB') return toast.error('File yang diizinkan: .csv, .png, .jpg, .pdf, .doc, .docx, .xls, .xlsx dengan ukuran maksimal 100 MB')
}} }}
></Dropzone> ></Dropzone>

View File

@@ -284,9 +284,9 @@ export default function CreateMember() {
}} }}
activateOnClick={false} activateOnClick={false}
maxSize={10 * 1024 ** 2} maxSize={10 * 1024 ** 2}
accept={['image/png', 'image/jpeg', 'image/heic']} accept={['image/png', 'image/jpeg']}
onReject={(files) => { onReject={(files) => {
return toast.error('File yang diizinkan: .png, .jpg, dan .heic dengan ukuran maksimal 10 MB') return toast.error('File yang diizinkan: .png dan .jpg dengan ukuran maksimal 10 MB')
}} }}
> >
</Dropzone> </Dropzone>

View File

@@ -216,9 +216,9 @@ export default function EditMember({ id }: { id: string }) {
}} }}
activateOnClick={false} activateOnClick={false}
maxSize={10 * 1024 ** 2} maxSize={10 * 1024 ** 2}
accept={['image/png', 'image/jpeg', 'image/heic']} accept={['image/png', 'image/jpeg']}
onReject={(files) => { onReject={(files) => {
return toast.error('File yang diizinkan: .png, .jpg, dan .heic dengan ukuran maksimal 10 MB') return toast.error('File yang diizinkan: .png dan .jpg dengan ukuran maksimal 10 MB')
}} }}
> >
</Dropzone> </Dropzone>

View File

@@ -179,10 +179,10 @@ export default function EditProfile() {
}} }}
activateOnClick={false} activateOnClick={false}
maxSize={10 * 1024 ** 2} maxSize={10 * 1024 ** 2}
accept={["image/png", "image/jpeg", "image/heic"]} accept={["image/png", "image/jpeg"]}
onReject={(files) => { onReject={(files) => {
return toast.error( return toast.error(
"File yang diizinkan: .png, .jpg, dan .heic dengan ukuran maksimal 10 MB" "File yang diizinkan: .png dan .jpg dengan ukuran maksimal 10 MB"
); );
}} }}
></Dropzone> ></Dropzone>