Skip to content

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

reduce timer to update side menu

ammarahm-ede3df3e4784aa
diff --git a/apps/mobile/src/components/Menu/ColorSection.js b/apps/mobile/src/components/Menu/ColorSection.js
index 177d6c447..17e8f9369 100644
--- a/apps/mobile/src/components/Menu/ColorSection.js
+++ b/apps/mobile/src/components/Menu/ColorSection.js
@@ -47,7 +47,7 @@ const ColorItem = React.memo(
setHeaderTextState(null);
}
}
- }, 600);
+ }, 300);
};
useEffect(() => {
diff --git a/apps/mobile/src/components/Menu/MenuListItem.js b/apps/mobile/src/components/Menu/MenuListItem.js
index 076523ce7..5470dff0d 100644
--- a/apps/mobile/src/components/Menu/MenuListItem.js
+++ b/apps/mobile/src/components/Menu/MenuListItem.js
@@ -12,7 +12,7 @@ import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
export const MenuListItem = React.memo(
- ({ item, index, noTextMode, testID, rightBtn }) => {
+ ({ item, index, testID, rightBtn }) => {
const [state] = useTracked();
const { colors } = state;
const [headerTextState, setHeaderTextState] = useState(null);
@@ -47,7 +47,7 @@ export const MenuListItem = React.memo(
setHeaderTextState(null);
}
}
- }, 600);
+ }, 300);
};
useEffect(() => {
diff --git a/apps/mobile/src/components/Menu/TagsSection.js b/apps/mobile/src/components/Menu/TagsSection.js
index 898f6f1f9..0494a5a0c 100644
--- a/apps/mobile/src/components/Menu/TagsSection.js
+++ b/apps/mobile/src/components/Menu/TagsSection.js
@@ -120,7 +120,7 @@ export const PinItem = React.memo(
setHeaderTextState(null);
}
}
- }, 600);
+ }, 300);
};
useEffect(() => {