From 570a4bd335b1206fda68af8425c5aa9fae34866d Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Wed, 9 Jul 2025 12:03:53 +0500 Subject: [PATCH] delete action --- src/components/EditProfileModal.js | 3 +-- src/services/authService.js | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/EditProfileModal.js b/src/components/EditProfileModal.js index 147ec8e..673d2fb 100644 --- a/src/components/EditProfileModal.js +++ b/src/components/EditProfileModal.js @@ -268,7 +268,7 @@ const EditProfileModal = ({ {/* Form */} - + Esasy maglumatlar @@ -451,7 +451,6 @@ const styles = StyleSheet.create({ width: 32, }, form: { - flex: 1, paddingHorizontal: 20, }, formSection: { diff --git a/src/services/authService.js b/src/services/authService.js index 6e985b5..5794d73 100644 --- a/src/services/authService.js +++ b/src/services/authService.js @@ -587,6 +587,14 @@ class AuthService { async deleteCardOrder(orderId) { return this.makeRequest(`/card-order/${orderId}`, null, true, 'DELETE'); } + + // ================================ + // Account deletion + // ================================ + + async deleteUserAccount() { + return this.makeRequest('/auth/delete-user', null, true, 'POST'); + } } export default new AuthService(); \ No newline at end of file