delete action
This commit is contained in:
@@ -268,7 +268,7 @@ const EditProfileModal = ({
|
||||
</View>
|
||||
|
||||
{/* Form */}
|
||||
<ScrollView style={styles.form} showsVerticalScrollIndicator={false}>
|
||||
<ScrollView style={styles.form} showsVerticalScrollIndicator={false} keyboardShouldPersistTaps="handled" contentContainerStyle={{paddingBottom:80}}>
|
||||
<View style={styles.formSection}>
|
||||
<Text style={styles.sectionTitle}>Esasy maglumatlar</Text>
|
||||
|
||||
@@ -451,7 +451,6 @@ const styles = StyleSheet.create({
|
||||
width: 32,
|
||||
},
|
||||
form: {
|
||||
flex: 1,
|
||||
paddingHorizontal: 20,
|
||||
},
|
||||
formSection: {
|
||||
|
||||
@@ -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();
|
||||
Reference in New Issue
Block a user