diff --git a/src/components/ImgUpload.jsx b/src/components/ImgUpload.jsx index e37bc8696..7bfa608d6 100644 --- a/src/components/ImgUpload.jsx +++ b/src/components/ImgUpload.jsx @@ -89,7 +89,7 @@ function ImgUpload(props) { }); }; - const handleUpload = () => { + function handleUpload() { if ((!image && !caption) || !isValidimage) { enqueueSnackbar("Upload valid image and caption!", { variant: "error", @@ -135,7 +135,7 @@ function ImgUpload(props) { props.onUploadEnd(); } }); - }; + } return (
@@ -182,6 +182,7 @@ function ImgUpload(props) { setCaption(e.target.value)} value={caption} + variant="filled" placeholder="Enter a Caption.." label="Caption" multiline @@ -190,9 +191,17 @@ function ImgUpload(props) { sx={{ backgroundColor: "white", borderRadius: "8px", + + "& .MuiFormLabel-root.Mui-focused": { + fontWeight: "bold", + }, }} /> - + Upload