using img instead of react-image to prevent unmounted component error
This commit is contained in:
parent
4f80c36c8c
commit
7af47a92c7
3 changed files with 1 additions and 13 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue