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
fix: search button in settings
thecodrrcc6c979563a6
diff --git a/apps/web/src/components/route-container/index.js b/apps/web/src/components/route-container/index.jsindex de87e225d..6e9dfc0a7 100644--- a/apps/web/src/components/route-container/index.js+++ b/apps/web/src/components/route-container/index.js@@ -8,7 +8,15 @@ import useMobile from "../../utils/use-mobile";import { navigate } from "../../navigation";function RouteContainer(props) {- const { type, route, canGoBack, title, subtitle, onlyBackButton } = props;+ const {+ type,+ route,+ canGoBack,+ title,+ subtitle,+ onlyBackButton,+ noSearch,+ } = props;return (<><Header@@ -16,6 +24,7 @@ function RouteContainer(props) {canGoBack={canGoBack}title={title}subtitle={subtitle}+ noSearch={noSearch}onlyBackButton={onlyBackButton}/>{route}@@ -26,7 +35,7 @@ function RouteContainer(props) {export default RouteContainer;function Header(props) {- const { title, subtitle, canGoBack, onlyBackButton, type } = props;+ const { title, subtitle, canGoBack, onlyBackButton, type, noSearch } = props;const createButtonData = CREATE_BUTTON_MAP[type];const toggleSideMenu = useStore((store) => store.toggleSideMenu);const isMobile = useMobile();@@ -65,7 +74,7 @@ function Header(props) {<SelectionOptions options={SELECTION_OPTIONS_MAP[type]} />{!isSelectionMode && (<Flex>- {type !== "search" && (+ {!noSearch && (<Icon.Searchsize={24}onClick={() => {diff --git a/apps/web/src/navigation/routes.js b/apps/web/src/navigation/routes.jsindex f0bce9ebe..be735addf 100644--- a/apps/web/src/navigation/routes.js+++ b/apps/web/src/navigation/routes.js@@ -95,9 +95,17 @@ const routes = {/>);},- "/settings": () => <RouteContainer title="Settings" route={<Settings />} />,+ "/settings": () => (+ <RouteContainer noSearch title="Settings" route={<Settings />} />+ ),"/search": () => (- <RouteContainer type="search" canGoBack title="Search" route={<Search />} />+ <RouteContainer+ type="search"+ canGoBack+ noSearch+ title="Search"+ route={<Search />}+ />),};