using img instead of react-image to prevent unmounted component error

This commit is contained in:
Carter 2025-03-18 14:58:56 -06:00
parent 4f80c36c8c
commit 7af47a92c7
3 changed files with 1 additions and 13 deletions

View file

@ -1,6 +1,5 @@
import { Icon } from "@mui/material";
import { makeStyles } from "@mui/styles";
import { Img as Image } from "react-image";
const useStyles = makeStyles(() => ({
icon: {
@ -37,7 +36,7 @@ export function ImgIcon(props: Props) {
className={classes.icon}
style={{ height: iconHeight, width: iconWidth }}
>
<Image
<img
alt={alt}
className={classes.img}
src={src}