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: properly lock editor when user is not logged in or the trial has expired
thecodrr9b54bc4356c5
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.jsindex 1b87b228c..682012126 100644--- a/apps/web/src/components/editor/index.js+++ b/apps/web/src/components/editor/index.js@@ -23,6 +23,8 @@ function Editor() {const isTrial = useUserStore((store) => store.user.notesnook?.subscription?.isTrial);+ const isLoggedin = useUserStore((store) => store.isLoggedIn);+const quillRef = useRef();const [diff] = useHashParam("diff");@@ -80,7 +82,7 @@ function Editor() {id="quill"ref={quillRef}refresh={sessionState === SESSION_STATES.new}- isSimple={isTrial}+ isSimple={isLoggedin || !isTrial}initialContent={delta}placeholder="Type anything here"container=".editor"