Skip to content

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

fix: make dropdown menu items functional (#33 & #29)

thecodrr3b99847609f2
diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.js
index a93bb8ecc..f197c604a 100644
--- a/apps/web/src/components/note/index.js
+++ b/apps/web/src/components/note/index.js
@@ -27,9 +27,8 @@ const menuItems = (note, index, groupIndex) => [
title: note.favorite ? "Unfavorite" : "Favorite",
onClick: () => store.getState().favorite(note, index)
},
- { title: "Edit" },
+ { title: "Edit", onClick: () => editorStore.getState().openSession(note) },
{ title: note.locked ? "Remove lock" : "Lock" }, //TODO
- { title: "Share" },
{
title: "Move to Trash",
color: "red",
diff --git a/apps/web/src/components/notebook/index.js b/apps/web/src/components/notebook/index.js
index 511d09df7..858dff279 100644
--- a/apps/web/src/components/notebook/index.js
+++ b/apps/web/src/components/notebook/index.js
@@ -11,7 +11,6 @@ const menuItems = (notebook, index) => [
onClick: () => store.getState().pin(notebook, index)
},
{ title: "Edit" },
- { title: "Share" },
{
title: "Delete",
color: "red",
diff --git a/apps/web/yarn.lock b/apps/web/yarn.lock
index 34327ea86..5dd61947c 100644
--- a/apps/web/yarn.lock
+++ b/apps/web/yarn.lock
@@ -3099,11 +3099,6 @@ crypto-browserify@^3.11.0:
randombytes "^2.0.0"
randomfill "^1.0.3"
-crypto-js@^4.0.0:
- version "4.0.0"
- resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.0.0.tgz#2904ab2677a9d042856a2ea2ef80de92e4a36dcc"
- integrity sha512-bzHZN8Pn+gS7DQA6n+iUmBfl0hO5DJq++QP3U6uTucDtk/0iGpXd/Gg7CGR0p8tJhofJyaKoWBuJI4eAO00BBg==
-
css-blank-pseudo@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/css-blank-pseudo/-/css-blank-pseudo-0.1.4.tgz#dfdefd3254bf8a82027993674ccf35483bfcb3c5"