From 3e164aa10857e35b491d2f183937cc1f176f2938 Mon Sep 17 00:00:00 2001 From: Dwynr Date: Fri, 16 Jun 2023 15:42:00 +0200 Subject: [PATCH] misc --- .../CameraUploadScreen/CameraUploadScreen.tsx | 38 ++++--------------- src/screens/SettingsScreen/SettingsScreen.tsx | 1 + 2 files changed, 9 insertions(+), 30 deletions(-) diff --git a/src/screens/CameraUploadScreen/CameraUploadScreen.tsx b/src/screens/CameraUploadScreen/CameraUploadScreen.tsx index 4239e1e8..23ef0053 100644 --- a/src/screens/CameraUploadScreen/CameraUploadScreen.tsx +++ b/src/screens/CameraUploadScreen/CameraUploadScreen.tsx @@ -415,38 +415,16 @@ export const CameraUploadScreen = memo(({ navigation }: CameraUploadScreenProps) }, { text: i18n(lang, "ok"), - onPress: () => { - Alert.alert( - i18n(lang, "cameraUploadReset"), - i18n(lang, "areYouReallySure"), - [ - { - text: i18n(lang, "cancel"), - onPress: () => { - return false - }, - style: "cancel" - }, - { - text: i18n(lang, "ok"), - onPress: async () => { - showFullScreenLoadingModal() + onPress: async () => { + showFullScreenLoadingModal() - await Promise.all([ - db.query("DELETE FROM camera_upload_last_modified"), - db.query("DELETE FROM camera_upload_last_modified_stat"), - db.query("DELETE FROM camera_upload_last_size") - ]).catch(console.error) + await Promise.all([ + db.query("DELETE FROM camera_upload_last_modified"), + db.query("DELETE FROM camera_upload_last_modified_stat"), + db.query("DELETE FROM camera_upload_last_size") + ]).catch(console.error) - hideFullScreenLoadingModal() - }, - style: "default" - } - ], - { - cancelable: true - } - ) + hideFullScreenLoadingModal() }, style: "default" } diff --git a/src/screens/SettingsScreen/SettingsScreen.tsx b/src/screens/SettingsScreen/SettingsScreen.tsx index 4cbc4e2d..ebab0e5b 100644 --- a/src/screens/SettingsScreen/SettingsScreen.tsx +++ b/src/screens/SettingsScreen/SettingsScreen.tsx @@ -845,6 +845,7 @@ export const SettingsScreen = memo(({ navigation, route }: SettingsScreenProps) title={i18n(lang, "hideFileFolderSize")} iconBackgroundColor={getColor(darkMode, "indigo")} iconName="analytics-outline" + withBottomBorder={Platform.OS === "ios"} rightComponent={