A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
update navigation indicator immediately
ammarahm-ed9d9c9d2ee59d
diff --git a/apps/mobile/src/components/Menu/ColorSection.js b/apps/mobile/src/components/Menu/ColorSection.jsindex 22e134e4a..09a23c4c8 100644--- a/apps/mobile/src/components/Menu/ColorSection.js+++ b/apps/mobile/src/components/Menu/ColorSection.js@@ -38,13 +38,12 @@ const ColorItem = ({item, index}) => {const [headerTextState, setHeaderTextState] = useState(null);const onHeaderStateChange = (event) => {- InteractionManager.runAfterInteractions(() => {if (event?.id === item.id) {setHeaderTextState(event);} else {setHeaderTextState(null);}- });+};useEffect(() => {diff --git a/apps/mobile/src/components/Menu/MenuListItem.js b/apps/mobile/src/components/Menu/MenuListItem.jsindex 409cfd3a5..ab1bd9edd 100644--- a/apps/mobile/src/components/Menu/MenuListItem.js+++ b/apps/mobile/src/components/Menu/MenuListItem.js@@ -7,7 +7,7 @@ import Navigation from '../../services/Navigation';import {getElevation} from '../../utils';import {normalize, SIZE} from '../../utils/SizeUtils';import {ActionIcon} from '../ActionIcon';-import { Button } from '../Button';+import {Button} from '../Button';import {PressableButton} from '../PressableButton';import Heading from '../Typography/Heading';import Paragraph from '../Typography/Paragraph';@@ -38,14 +38,11 @@ export const MenuListItem = ({item, index, noTextMode, testID, rightBtn}) => {};const onHeaderStateChange = (event) => {- InteractionManager.runAfterInteractions(() => {- if (event.id === item.name.toLowerCase() + '_navigation') {- setHeaderTextState(event);- } else {- setHeaderTextState(null);- }- })-+ if (event.id === item.name.toLowerCase() + '_navigation') {+ setHeaderTextState(event);+ } else {+ setHeaderTextState(null);+ }};useEffect(() => {@@ -106,17 +103,17 @@ export const MenuListItem = ({item, index, noTextMode, testID, rightBtn}) => {name={item.on ? 'toggle-switch' : 'toggle-switch-off'}/>) : rightBtn ? (- <Button- title={rightBtn.name}- type="shade"- height={25}- fontSize={SIZE.xs}- iconSize={SIZE.xs}- icon={rightBtn.icon}- style={{- borderRadius:100- }}- onPress={rightBtn.func}+ <Button+ title={rightBtn.name}+ type="shade"+ height={25}+ fontSize={SIZE.xs}+ iconSize={SIZE.xs}+ icon={rightBtn.icon}+ style={{+ borderRadius: 100,+ }}+ onPress={rightBtn.func}/>) : (<Viewdiff --git a/apps/mobile/src/components/Menu/TagsSection.js b/apps/mobile/src/components/Menu/TagsSection.jsindex 442447f13..308a4b895 100644--- a/apps/mobile/src/components/Menu/TagsSection.js+++ b/apps/mobile/src/components/Menu/TagsSection.js@@ -123,13 +123,13 @@ const PinItem = ({item, index, onPress}) => {const color = headerTextState?.id === item.id ? colors.accent : colors.pri;const onHeaderStateChange = (event) => {- InteractionManager.runAfterInteractions(() => {+if (event?.id === item.id) {setHeaderTextState(event);} else {setHeaderTextState(null);}- })+};diff --git a/apps/mobile/src/components/Menu/UserSection.js b/apps/mobile/src/components/Menu/UserSection.jsindex 6050eca6a..999ba71c7 100644--- a/apps/mobile/src/components/Menu/UserSection.js+++ b/apps/mobile/src/components/Menu/UserSection.js@@ -1,14 +1,14 @@import React from 'react';-import { ActivityIndicator, TouchableOpacity, View } from 'react-native';+import {ActivityIndicator, TouchableOpacity, View} from 'react-native';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';-import { useTracked } from '../../provider';-import { eSendEvent, ToastEvent } from '../../services/EventManager';+import {useTracked} from '../../provider';+import {eSendEvent, ToastEvent} from '../../services/EventManager';import Sync from '../../services/Sync';-import { eOpenLoginDialog } from '../../utils/Events';-import { SIZE } from '../../utils/SizeUtils';+import {eOpenLoginDialog} from '../../utils/Events';+import {SIZE} from '../../utils/SizeUtils';import Heading from '../Typography/Heading';import Paragraph from '../Typography/Paragraph';-import { TimeSince } from './TimeSince';+import {TimeSince} from './TimeSince';export const UserSection = ({noTextMode}) => {const [state, dispatch] = useTracked();