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
remove unused data
ammarahm-edc7f605955d7a
diff --git a/apps/mobile/src/components/NotebookItem/index.js b/apps/mobile/src/components/NotebookItem/index.jsindex 7fbb4ae9e..ca0655a8c 100644--- a/apps/mobile/src/components/NotebookItem/index.js+++ b/apps/mobile/src/components/NotebookItem/index.js@@ -17,17 +17,13 @@ export const NotebookItem = ({item, isTopic = false, notebookID, isTrash}) => {const topics = item.topics?.slice(0, 3) || [];const totalNotes = getTotalNotes(item);const showActionSheet = () => {- let rowItems = isTrash- ? ['Restore', 'Remove']- : [item.type == 'topic' ? 'Edit Topic' : 'Edit Notebook','Pin', 'Add Shortcut','Delete'];+ let rowItems =+ item.type === 'topic'+ ? ['Edit Topic', 'Add Shortcut', 'Delete']+ : ['Edit Notebook', 'Pin', 'Add Shortcut', 'Delete'];+ rowItems = isTrash ? ['Restore', 'Remove'] : rowItems;- let columnItems = isTrash- ? []- : item.type === 'topic'- ? ['Add Shortcut', 'Delete']- : ['Pin', 'Add Shortcut','Delete'];-- ActionSheetEvent(item, false, false, rowItems, columnItems, {+ ActionSheetEvent(item, false, false, rowItems, {notebookID: notebookID,});};