Skip to content

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

web: fix incorrect loading state of icons

Abdullah Atta6cb5a5e47334
diff --git a/apps/web/src/components/icons/index.tsx b/apps/web/src/components/icons/index.tsx
index 2c1a03062..7f180f937 100644
--- a/apps/web/src/components/icons/index.tsx
+++ b/apps/web/src/components/icons/index.tsx
@@ -247,7 +247,10 @@ function _MDIIconWrapper({
/>
);
}
-const MDIIconWrapper = memo(_MDIIconWrapper, () => true);
+const MDIIconWrapper = memo(
+ _MDIIconWrapper,
+ (prev, next) => prev.rotate === next.rotate
+);
export type IconProps = FlexProps &
MotionProps &