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 trash cleanup interval text
ammarahm-ed8b538b833bbf
diff --git a/apps/mobile/app/screens/trash/index.tsx b/apps/mobile/app/screens/trash/index.tsxindex cfe292fee..9ae5c4460 100644--- a/apps/mobile/app/screens/trash/index.tsx+++ b/apps/mobile/app/screens/trash/index.tsx@@ -48,7 +48,7 @@ const onPressFloatingButton = () => {positivePress: async () => {await db.trash?.clear();useTrashStore.getState().setTrash();- useSelectionStore.getState().clearSelection(true);+ useSelectionStore.getState().clearSelection();ToastEvent.show({heading: "Trash cleared",message:@@ -60,13 +60,15 @@ const onPressFloatingButton = () => {positiveType: "errorShade"});};--const PLACEHOLDER_DATA = {+const PLACEHOLDER_DATA = (trashCleanupInterval = 7) => ({heading: "Trash",- paragraph: "Items in the trash will be permanently deleted after 7 days.",+ paragraph:+ trashCleanupInterval === -1+ ? "Set automatic trash cleanup interval from Settings > Behaviour > Clean trash interval."+ : `Items in the trash will be permanently deleted after after ${trashCleanupInterval} days.`,button: null,loading: "Loading trash items"-};+});export const Trash = ({ navigation, route }: NavigationProps<"Trash">) => {const trash = useTrashStore((state) => state.trash);@@ -95,7 +97,9 @@ export const Trash = ({ navigation, route }: NavigationProps<"Trash">) => {type="trash"screen="Trash"loading={!isFocused}- placeholderData={PLACEHOLDER_DATA}+ placeholderData={PLACEHOLDER_DATA(+ db.settings?.getTrashCleanupInterval()+ )}headerProps={{heading: "Trash",color: null