@arkyn/components 1.3.147 → 1.3.148
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +39173 -28103
- package/dist/bundle.umd.cjs +777 -502
- package/dist/components/ImageUpload/index.d.ts.map +1 -1
- package/dist/components/ImageUpload/index.js +1 -0
- package/package.json +1 -1
- package/src/components/ImageUpload/index.tsx +1 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ImageUpload/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAQhD,OAAO,cAAc,CAAC;AAEtB,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ImageUpload/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAQhD,OAAO,cAAc,CAAC;AAEtB,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA6F3C;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
@@ -18,6 +18,7 @@ function ImageUpload(props) {
|
|
18
18
|
async function handleUploadImage(file) {
|
19
19
|
setIsLoading(true);
|
20
20
|
setFile(file);
|
21
|
+
setError("");
|
21
22
|
const formData = new FormData();
|
22
23
|
formData.append(fileName, file);
|
23
24
|
await fetch(action, { method: method, body: formData })
|
package/package.json
CHANGED