Test article with the new unified upload image component that handles featured image and avatar

Author's avatar

Janette Dough

Updated at: Yesterday at 4:21 AM

Why is there no space?

Indeed: the culprit was the missing description

is it because this wasn't provided? Test article with the new unified upload image component that handles featured image and avatar

Update: I will add some code at the end and remove the cover image

Fast Refresh had to perform a full reload due to a runtime error. ⚠ Fast Refresh had to perform a full reload due to a runtime error. ⚠ Fast Refresh had to perform a full reload due to a runtime error. ⚠ Fast Refresh had to perform a full reload due to a runtime error. ⚠ Fast Refresh had to perform a full reload due to a runtime error. ⚠ Fast Refresh had to perform a full reload due to a runtime error. ⚠ Fast Refresh had to perform a full reload due to a runtime error. ⚠ Fast Refresh had to perform a full reload due to a runtime error. ⚠ Fast Refresh had to perform a full reload due to a runtime error.

useEffect(() => {
    if (isImageRemoved) {
      if (pathname !== "/settings") {
        localStorage.removeItem("imagePreview");
        localStorage.removeItem("featuredImage");
      }
      setImagePreview("");
      setImage("");
      setIsImageRemoved(false);
    }
  }, [isImageRemoved]);

0


Responses (0)