delete action

This commit is contained in:
2025-07-09 12:03:53 +05:00
parent 4dce2a6d63
commit 570a4bd335
2 changed files with 9 additions and 2 deletions

View File

@@ -268,7 +268,7 @@ const EditProfileModal = ({
</View> </View>
{/* Form */} {/* Form */}
<ScrollView style={styles.form} showsVerticalScrollIndicator={false}> <ScrollView style={styles.form} showsVerticalScrollIndicator={false} keyboardShouldPersistTaps="handled" contentContainerStyle={{paddingBottom:80}}>
<View style={styles.formSection}> <View style={styles.formSection}>
<Text style={styles.sectionTitle}>Esasy maglumatlar</Text> <Text style={styles.sectionTitle}>Esasy maglumatlar</Text>
@@ -451,7 +451,6 @@ const styles = StyleSheet.create({
width: 32, width: 32,
}, },
form: { form: {
flex: 1,
paddingHorizontal: 20, paddingHorizontal: 20,
}, },
formSection: { formSection: {

View File

@@ -587,6 +587,14 @@ class AuthService {
async deleteCardOrder(orderId) { async deleteCardOrder(orderId) {
return this.makeRequest(`/card-order/${orderId}`, null, true, 'DELETE'); 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(); export default new AuthService();