web: fix color not setting on icons

This commit is contained in:
Abdullah Atta
2023-06-05 16:21:40 +05:00
parent 6cb5a5e473
commit 3525feffcf

View File

@@ -249,7 +249,10 @@ function _MDIIconWrapper({
}
const MDIIconWrapper = memo(
_MDIIconWrapper,
(prev, next) => prev.rotate === next.rotate
(prev, next) =>
prev.rotate === next.rotate &&
prev.color === next.color &&
prev.title === next.title
);
export type IconProps = FlexProps &