diff --git a/src/screens/ui/SettingsScreen.tsx b/src/screens/ui/SettingsScreen.tsx
index c1fff09f8..fadc36a16 100644
--- a/src/screens/ui/SettingsScreen.tsx
+++ b/src/screens/ui/SettingsScreen.tsx
@@ -73,6 +73,7 @@ const SettingsScreen: FC = () => {
title={t('settings:upload_logs')}
/>
+
diff --git a/src/shared/lib/alerts/deleteAccountAlert.ts b/src/shared/lib/alerts/deleteAccountAlert.ts
index d13c07fa7..ea8e613e4 100644
--- a/src/shared/lib/alerts/deleteAccountAlert.ts
+++ b/src/shared/lib/alerts/deleteAccountAlert.ts
@@ -1,38 +1,32 @@
import { Alert } from 'react-native';
export function onDeleteAccount(onConfirm: () => void) {
- return new Promise(resolve => {
- Alert.alert(
- 'Account Deletion Request',
- 'Are you sure you want to delete your account? All data will be permanently deleted',
- [
- {
- text: 'Cancel',
- onPress: resolve,
- },
- {
- text: 'Yes, delete',
- onPress: onConfirm,
- },
- ],
- );
- });
+ Alert.alert(
+ 'Account Deletion Request',
+ 'Are you sure you want to delete your account? All data will be permanently deleted',
+ [
+ {
+ text: 'Cancel',
+ },
+ {
+ text: 'Yes, delete',
+ onPress: onConfirm,
+ },
+ ],
+ );
}
export function onDeleteAccountConfirmed() {
- return new Promise(resolve => {
- Alert.alert(
- 'Account Deletion Request Has Been Sent',
- `Account Deletion takes up to 24 hours.\n\n
+ Alert.alert(
+ 'Account Deletion Request Has Been Sent',
+ `Account Deletion takes up to 24 hours.\n\n
During this time, you will be logged out, and access to your account will be blocked.\n\n
If you change your mind please contact us
`,
- [
- {
- text: 'Ok',
- onPress: resolve,
- },
- ],
- );
- });
+ [
+ {
+ text: 'Ok',
+ },
+ ],
+ );
}