change design
This commit is contained in:
@@ -11,7 +11,7 @@ function UploadFile({ image, setImage }) {
|
|||||||
const fileRef = useRef();
|
const fileRef = useRef();
|
||||||
|
|
||||||
const openInput = () => fileRef.current.click();
|
const openInput = () => fileRef.current.click();
|
||||||
const handleChange = async (e) => {
|
const handleChange = async (event) => {
|
||||||
const result = await uploadImage(event);
|
const result = await uploadImage(event);
|
||||||
setImage(result);
|
setImage(result);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user