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