Merge pull request #37 from eltociear/patch-1

Update ImageUpload.tsx
This commit is contained in:
Abi Raja 2023-11-19 10:59:41 -05:00 committed by GitHub
commit 258b8fb05b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ const rejectStyle = {
borderColor: "#ff1744", borderColor: "#ff1744",
}; };
// TODO: Move to a seperate file // TODO: Move to a separate file
function fileToDataURL(file: File) { function fileToDataURL(file: File) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const reader = new FileReader(); const reader = new FileReader();