Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwynr committed Jun 16, 2023
1 parent 8dc1e63 commit 3e164aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 30 deletions.
38 changes: 8 additions & 30 deletions src/screens/CameraUploadScreen/CameraUploadScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
1 change: 1 addition & 0 deletions src/screens/SettingsScreen/SettingsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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={
<Switch
trackColor={getColor(darkMode, "switchTrackColor")}
Expand Down

0 comments on commit 3e164aa

Please sign in to comment.