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
mobile: fix missing delete button in trash
Ammar Ahmedabfa5d719a40
diff --git a/apps/mobile/app/components/properties/items.tsx b/apps/mobile/app/components/properties/items.tsxindex 660551333..f0a0d199f 100644--- a/apps/mobile/app/components/properties/items.tsx+++ b/apps/mobile/app/components/properties/items.tsx@@ -71,7 +71,8 @@ const COLUMN_BAR_ITEMS: ActionId[] = ["rename-color","rename-tag","restore",- "trash"+ "trash",+ "delete"];export const Items = ({ item, close }: { item: Item; close: () => void }) => {diff --git a/apps/mobile/app/hooks/use-actions.tsx b/apps/mobile/app/hooks/use-actions.tsxindex 527df5e7e..9a4b4d516 100644--- a/apps/mobile/app/hooks/use-actions.tsx+++ b/apps/mobile/app/hooks/use-actions.tsx@@ -977,19 +977,18 @@ export const useActions = ({}}- actions.push({- id: "trash",- title:- item.type !== "notebook" && item.type !== "note"- ? strings.doActions.delete.unknown(- item.type === "trash" ? item.itemType : item.type,- 1- )- : strings.moveToTrash(),- icon: "delete-outline",- type: "error",- onPress: deleteItem- });+ if (item.type != "trash") {+ actions.push({+ id: "trash",+ title:+ item.type !== "notebook" && item.type !== "note"+ ? strings.doActions.delete.unknown(item.type, 1)+ : strings.moveToTrash(),+ icon: "delete-outline",+ type: "error",+ onPress: deleteItem+ });+ }return actions;};