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: enable navigation to notebook & topic from properties
thecodrr083fd49d79fe
diff --git a/apps/web/src/components/properties/index.js b/apps/web/src/components/properties/index.jsindex a985cf3ed..ece32502e 100644--- a/apps/web/src/components/properties/index.js+++ b/apps/web/src/components/properties/index.js@@ -10,6 +10,7 @@ import Animated from "../animated";import Toggle from "./toggle";import { toTitleCase } from "../../utils/string";import { showMoveNoteDialog } from "../dialogs/movenotedialog";+import { navigate } from "hookrouter";const tools = [{ key: "pinned", icons: { on: Icon.PinFilled, off: Icon.Pin }, label: "Pin" },@@ -132,6 +133,7 @@ function Properties() {color="primary"sx={{ cursor: "pointer" }}onClick={() => {+ navigate(`/notebooks/${notebookData.id}`);/* RootNavigator.navigate("notebooks",{ params: { id: notebookData.id } },@@ -147,11 +149,10 @@ function Properties() {color="primary"sx={{ cursor: "pointer" }}onClick={() => {- /* RootNavigator.navigate(- "notebooks",- { params: notebookData },- true- ); */+ const index = notebook.topics.findIndex(+ (t) => t.title === notebookData.topic+ );+ navigate(`/notebooks/${notebookData.id}/${index}`);}}>{notebookData.topic}