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
allow pinning in free mode
ammarahm-edd63d52d322d6
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.jsindex ca3cae415..daf0bbedd 100644--- a/apps/mobile/src/components/ActionSheetComponent/index.js+++ b/apps/mobile/src/components/ActionSheetComponent/index.js@@ -275,38 +275,29 @@ export const ActionSheetComponent = ({name: 'Pin',icon: 'tag-outline',func: async () => {- await PremiumService.verify(- async () => {- if (!note.id) return;- if (note.type === 'note') {- if (db.notes.pinned.length === 3) {- ToastEvent.show(- 'You cannot pin more than 3 notes',- 'error',- 'local',- );- return;- }- await db.notes.note(note.id).pin();- } else {- if (db.notebooks.pinned.length === 3) {- ToastEvent.show(- 'You cannot pin more than 3 notes',- 'error',- 'local',- );- return;- }- await db.notebooks.notebook(note.id).pin();- }- localRefresh(item.type);- },- {- context: 'sheet',- title: 'Get Notesnook Pro',- desc: 'To pin notes and notebooks become a Pro user today.',- },- );+ if (!note.id) return;+ if (note.type === 'note') {+ if (db.notes.pinned.length === 3) {+ ToastEvent.show(+ 'You cannot pin more than 3 notes',+ 'error',+ 'local',+ );+ return;+ }+ await db.notes.note(note.id).pin();+ } else {+ if (db.notebooks.pinned.length === 3) {+ ToastEvent.show(+ 'You cannot pin more than 3 notes',+ 'error',+ 'local',+ );+ return;+ }+ await db.notebooks.notebook(note.id).pin();+ }+ localRefresh(item.type);},close: false,check: true,