Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix color not setting on icons

Abdullah Atta3525feffcf4d
diff --git a/apps/web/src/components/icons/index.tsx b/apps/web/src/components/icons/index.tsx
index 7f180f937..28c4a1586 100644
--- a/apps/web/src/components/icons/index.tsx
+++ b/apps/web/src/components/icons/index.tsx
@@ -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 &