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 pdf-preview crash
Ammar Ahmede98e1a5f3617
diff --git a/apps/mobile/app/components/dialogs/pdf-preview/index.js b/apps/mobile/app/components/dialogs/pdf-preview/index.jsindex 9555dc0fa..ee099ba61 100644--- a/apps/mobile/app/components/dialogs/pdf-preview/index.js+++ b/apps/mobile/app/components/dialogs/pdf-preview/index.js@@ -188,7 +188,7 @@ const PDFPreview = () => {}}color={colors.static.white}>- {strings.loadingWithProgress(progress.percent)}+ {strings.loadingWithProgress(progress?.percent)}</Paragraph></Animated.View>) : (diff --git a/apps/mobile/app/screens/settings/attachment-group-progress.tsx b/apps/mobile/app/screens/settings/attachment-group-progress.tsxindex 315e307f9..f903b3ad0 100644--- a/apps/mobile/app/screens/settings/attachment-group-progress.tsx+++ b/apps/mobile/app/screens/settings/attachment-group-progress.tsx@@ -29,6 +29,7 @@ import { useAttachmentProgress } from "../../hooks/use-attachment-progress";import { useDBItem } from "../../hooks/use-db-item";import { useAttachmentStore } from "../../stores/use-attachment-store";import { SIZE } from "../../utils/size";+import { strings } from "@notesnook/intl";export const AttachmentGroupProgress = (props: { groupId?: string }) => {const { colors } = useThemeColors();@@ -90,11 +91,12 @@ export const AttachmentGroupProgress = (props: { groupId?: string }) => {}}numberOfLines={1}>- Downloading {file?.filename} {formatBytes(file?.size || 0)}{" "}+ {strings.downloading()} {file?.filename}{" "}+ {formatBytes(file?.size || 0)}{" "}{fileProgress?.percent ? `(${fileProgress.percent})` : ""}</Paragraph><Paragraph size={10} color={colors.secondary.paragraph}>- Group: {props.groupId}+ {strings.group()}: {props.groupId}</Paragraph></View>{props.groupId === "offline-mode" ? null : (diff --git a/apps/mobile/app/screens/settings/settings-data.tsx b/apps/mobile/app/screens/settings/settings-data.tsxindex 8d173ff9f..b69172c4c 100644--- a/apps/mobile/app/screens/settings/settings-data.tsx+++ b/apps/mobile/app/screens/settings/settings-data.tsx@@ -1166,7 +1166,9 @@ export const settingsGroups: SettingSection[] = [type: "component",hidden: () => !useUserStore.getState().user,name: strings.automaticBackupsWithAttachments(),- description: strings.automaticBackupsWithAttachmentsDesc(),+ description: [+ ...strings.automaticBackupsWithAttachmentsDesc()+ ].join("\n"),component: "autobackupsattachments"},{