Skip to content

Commit

Permalink
add svg to imageUploader
Browse files Browse the repository at this point in the history
  • Loading branch information
AronPetrauskas committed Jan 14, 2025
1 parent 3bb88ba commit f1834c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImageUploader/ImageUploader.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe("ImageUploader", () => {
// wait for the error message to be displayed
await waitFor(() =>
expect(dropzoneElement).toHaveTextContent(
"File type must be .gif, .jpg, .jpeg, .png, .webp."
"File type must be .gif, .jpg, .jpeg, .png, .svg, .webp."
)
);
});
Expand Down
1 change: 1 addition & 0 deletions src/ImageUploader/ImageUploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default function ImageUploader({
"image/gif": [".gif"],
"image/jpeg": [".jpg", ".jpeg"],
"image/png": [".png"],
"image/svg": [".svg"],
"image/webp": [".webp"]
},
filesLimit: 1,
Expand Down

0 comments on commit f1834c1

Please sign in to comment.