fix: add .gif and .svg to dropzone accepted files

This commit is contained in:
trafficlunar 2024-12-17 19:17:54 +00:00
parent 7dc53cd272
commit f359555d1a

View file

@ -15,7 +15,7 @@ function OpenImage({ close }: DialogProps) {
const { acceptedFiles, getRootProps, getInputProps } = useDropzone({ const { acceptedFiles, getRootProps, getInputProps } = useDropzone({
accept: { accept: {
"image/*": [".png", ".jpg", ".jpeg", ".bmp", ".webp", ".tiff"], "image/*": [".png", ".jpg", ".jpeg", ".gif", ".bmp", ".webp", ".tiff", ".svg"],
}, },
}); });