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
tweak state usage
Ammar Ahmed6b52ab81d266
diff --git a/apps/mobile/src/components/header/index.js b/apps/mobile/src/components/header/index.jsindex 7a82f2ea3..26b3f62b3 100644--- a/apps/mobile/src/components/header/index.js+++ b/apps/mobile/src/components/header/index.js@@ -17,7 +17,7 @@ export const Header = React.memo(const insets = useSafeAreaInsets();const [hide, setHide] = useState(true);const selectionMode = useSelectionStore(state => state.selectionMode);- const currentScreen = useNavigationStore(state => state.currentScreen);+ const currentScreen = useNavigationStore(state => state.currentScreen?.name);const onScroll = data => {if (data.y > 150) {@@ -51,7 +51,7 @@ export const Header = React.memo(}]}>- {currentScreen.name === 'Search' ? (+ {currentScreen === 'Search' ? (<SearchBar />) : (<>