Hello,
In https://preview.keenthemes.com/metronic8/demo1/account/settings.html the avatar is editable and according to the doc it should. However, When I attempted to convert the code from the HTML folder to ReactJS it just allowed me to select the image file but not display the selected image. When I ran the React version of the demo (http://localhost:3012/metronic8/react/demo1/crafted/account/settings) it simply did not display the avatar edit button at all.
Here is my converted code snippet:
{/* */}
{/* */}
{/* */}
{/* */}
{/* */}
// ... other code snippet
Am I missing something obvious here? Please advise. Thanks.
It sounds like a frustrating issue with the avatar display after the conversion. Have you checked if the image paths are correctly set in your ReactJS components? I recently faced a similar challenge while working on a project, and it reminded me of the creative solutions in games like crazy cattle 3d. Hope you find a fix soon!
Hi,
You can reuse this solution, besides the HTML code, you need to initialize an ImageInputComponent you can do it inside useEffect() react hook.
import { ImageInputComponent } from "../../../_metronic/assets/ts/components";
useEffect(() => {
ImageInputComponent.createInstances();
}, []) Could anyone help look at this, please? I've been blocked here for a couple of days. Thanks!